From: Sam Steingold Date: Mon, 26 Mar 2007 02:29:08 +0000 (+0000) Subject: (sigchld_handler): Delay by 1ms instead of 1s to X-Git-Tag: emacs-pretest-22.0.97~176 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f0e1e444f4102b9593dae0a6035f53f61f49c2f;p=emacs.git (sigchld_handler): Delay by 1ms instead of 1s to alleviate sluggishness (the original problem is still fixed). --- diff --git a/src/ChangeLog b/src/ChangeLog index 79770d0d717..e44c5197204 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/process.c b/src/process.c index 382db8b2578..b5e8f10bfab 100644 --- a/src/process.c +++ b/src/process.c @@ -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); }