changeset 76456:720d443bce01

(sigchld_handler): Sleep before wait3 to avoid a busyloop.
author Sam Steingold <sds@gnu.org>
date Sun, 11 Mar 2007 18:16:50 +0000
parents dac34bd10d88
children be12eb93544e
files src/ChangeLog src/process.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Mar 11 17:44:40 2007 +0000
+++ b/src/ChangeLog	Sun Mar 11 18:16:50 2007 +0000
@@ -1,3 +1,7 @@
+2007-03-11  Sam Steingold  <sds@gnu.org>
+
+	* process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
+
 2007-03-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
 	* macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
--- a/src/process.c	Sun Mar 11 17:44:40 2007 +0000
+++ b/src/process.c	Sun Mar 11 18:16:50 2007 +0000
@@ -6497,6 +6497,7 @@
       /* Keep trying to get a status until we get a definitive result.  */
       do
 	{
+          sleep (1);
 	  errno = 0;
 	  pid = wait3 (&w, WNOHANG | WUNTRACED, 0);
 	}