From 8f0e1e444f4102b9593dae0a6035f53f61f49c2f Mon Sep 17 00:00:00 2001 From: Sam Steingold Date: Mon, 26 Mar 2007 02:29:08 +0000 Subject: [PATCH] (sigchld_handler): Delay by 1ms instead of 1s to alleviate sluggishness (the original problem is still fixed). --- src/ChangeLog | 5 +++++ src/process.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 79770d0d717..e44c5197204 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-03-26 Sam Steingold + + * 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 * intervals.c (merge_properties): Use explicit loop instead of diff --git a/src/process.c b/src/process.c index 382db8b2578..b5e8f10bfab 100644 --- a/src/process.c +++ b/src/process.c @@ -6507,7 +6507,7 @@ sigchld_handler (signo) 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); } -- 2.39.5