summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorSam Steingold <sds@gnu.org>2007-03-26 02:29:08 +0000
committerSam Steingold <sds@gnu.org>2007-03-26 02:29:08 +0000
commit8f0e1e444f4102b9593dae0a6035f53f61f49c2f (patch)
treebdbbd7a1768b1c46bd29f78be0980e6e80cece2a /src/process.c
parent3e32375010a17e54a406b39ae62f86705790969b (diff)
downloademacs-8f0e1e444f4102b9593dae0a6035f53f61f49c2f.tar.gz
(sigchld_handler): Delay by 1ms instead of 1s to
alleviate sluggishness (the original problem is still fixed).
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
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);
}