Commit ece29e38 authored by Sam Steingold's avatar Sam Steingold
Browse files

(sigchld_handler): Sleep before wait3 to avoid a busyloop.

parent 3dd34132
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> 2007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
   
* macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.". * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
......
...@@ -6497,6 +6497,7 @@ sigchld_handler (signo) ...@@ -6497,6 +6497,7 @@ sigchld_handler (signo)
/* Keep trying to get a status until we get a definitive result. */ /* Keep trying to get a status until we get a definitive result. */
do do
{ {
sleep (1);
errno = 0; errno = 0;
pid = wait3 (&w, WNOHANG | WUNTRACED, 0); pid = wait3 (&w, WNOHANG | WUNTRACED, 0);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment