# HG changeset patch # User Sam Steingold # Date 1174876148 0 # Node ID c39f6a4ef598686d4ddff2f701867c688176bade # Parent 9c267a44bcf98afee0ea6fce81b69b1b3929fdd2 (sigchld_handler): Delay by 1ms instead of 1s to alleviate sluggishness (the original problem is still fixed). diff -r 9c267a44bcf9 -r c39f6a4ef598 src/ChangeLog --- a/src/ChangeLog Mon Mar 26 00:01:03 2007 +0000 +++ b/src/ChangeLog Mon Mar 26 02:29:08 2007 +0000 @@ -1,3 +1,8 @@ +2007-03-26 Sam Steingold + + * 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 * intervals.c (merge_properties): Use explicit loop instead of diff -r 9c267a44bcf9 -r c39f6a4ef598 src/process.c --- a/src/process.c Mon Mar 26 00:01:03 2007 +0000 +++ b/src/process.c Mon Mar 26 02:29:08 2007 +0000 @@ -6507,7 +6507,7 @@ 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); }