1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-11 16:08:13 +00:00

(sigchld_handler): Delay by 1ms instead of 1s to

alleviate sluggishness (the original problem is still fixed).
This commit is contained in:
Sam Steingold 2007-03-26 02:29:08 +00:00
parent 3e32375010
commit 8f0e1e444f
2 changed files with 6 additions and 1 deletions

View 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

View 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);
}