]> git.eshelyaron.com Git - emacs.git/commitdiff
(sigchld_handler): Delay by 1ms instead of 1s to
authorSam Steingold <sds@gnu.org>
Mon, 26 Mar 2007 02:29:08 +0000 (02:29 +0000)
committerSam Steingold <sds@gnu.org>
Mon, 26 Mar 2007 02:29:08 +0000 (02:29 +0000)
alleviate sluggishness (the original problem is still fixed).

src/ChangeLog
src/process.c

index 79770d0d7171be7309578d280bdce48bc12f2028..e44c519720436ba2f4c184a3076039a44cc7f9b7 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-26  Sam Steingold  <sds@gnu.org>
+
+       * process.c (sigchld_handler): Delay by 1ms instead of 1s to
+       alleviate sluggishness (the original problem is still fixed).
+
 2007-03-25  Kim F. Storm  <storm@cua.dk>
 
        * intervals.c (merge_properties): Use explicit loop instead of
index 382db8b2578304c6c08c99cbd9c73059c224d794..b5e8f10bfab61d08447bfccd82463fc3751b0e5e 100644 (file)
@@ -6507,7 +6507,7 @@ sigchld_handler (signo)
              loadavg to 5-8(!) for ~10 seconds.
              See http://thread.gmane.org/gmane.emacs.devel/67722 or
              http://www.google.com/search?q=busyloop+in+sigchld_handler */
-          sleep (1);
+          usleep (1000);
          errno = 0;
          pid = wait3 (&w, WNOHANG | WUNTRACED, 0);
        }