changeset 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 9c267a44bcf9
children e4f81c51941e
files src/ChangeLog src/process.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <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
--- 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);
 	}