From: Sam Steingold Date: Sun, 11 Mar 2007 18:16:50 +0000 (+0000) Subject: (sigchld_handler): Sleep before wait3 to avoid a busyloop. X-Git-Tag: emacs-pretest-22.0.96~149 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ece29e38e498242f10c2f6e9483a9fe250e1441b;p=emacs.git (sigchld_handler): Sleep before wait3 to avoid a busyloop. --- diff --git a/src/ChangeLog b/src/ChangeLog index 418705ab77d..eccdc2075d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-03-11 Sam Steingold + + * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop. + 2007-03-11 YAMAMOTO Mitsuharu * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.". diff --git a/src/process.c b/src/process.c index 78fc400e5a2..0fbbd5d34c3 100644 --- a/src/process.c +++ b/src/process.c @@ -6497,6 +6497,7 @@ sigchld_handler (signo) /* Keep trying to get a status until we get a definitive result. */ do { + sleep (1); errno = 0; pid = wait3 (&w, WNOHANG | WUNTRACED, 0); }