diff src/process.c @ 76738:c39f6a4ef598

(sigchld_handler): Delay by 1ms instead of 1s to alleviate sluggishness (the original problem is still fixed).
author Sam Steingold <sds@gnu.org>
date Mon, 26 Mar 2007 02:29:08 +0000
parents 217f3f19f471
children c21bd0559ef9
line wrap: on
line diff
--- 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);
 	}