diff options
| author | Sam Steingold | 2007-03-26 02:29:08 +0000 |
|---|---|---|
| committer | Sam Steingold | 2007-03-26 02:29:08 +0000 |
| commit | 8f0e1e444f4102b9593dae0a6035f53f61f49c2f (patch) | |
| tree | bdbbd7a1768b1c46bd29f78be0980e6e80cece2a | |
| parent | 3e32375010a17e54a406b39ae62f86705790969b (diff) | |
| download | emacs-8f0e1e444f4102b9593dae0a6035f53f61f49c2f.tar.gz emacs-8f0e1e444f4102b9593dae0a6035f53f61f49c2f.zip | |
(sigchld_handler): Delay by 1ms instead of 1s to
alleviate sluggishness (the original problem is still fixed).
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/process.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 79770d0d717..e44c5197204 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-03-26 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * process.c (sigchld_handler): Delay by 1ms instead of 1s to | ||
| 4 | alleviate sluggishness (the original problem is still fixed). | ||
| 5 | |||
| 1 | 2007-03-25 Kim F. Storm <storm@cua.dk> | 6 | 2007-03-25 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * intervals.c (merge_properties): Use explicit loop instead of | 8 | * 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) | |||
| 6507 | loadavg to 5-8(!) for ~10 seconds. | 6507 | loadavg to 5-8(!) for ~10 seconds. |
| 6508 | See http://thread.gmane.org/gmane.emacs.devel/67722 or | 6508 | See http://thread.gmane.org/gmane.emacs.devel/67722 or |
| 6509 | http://www.google.com/search?q=busyloop+in+sigchld_handler */ | 6509 | http://www.google.com/search?q=busyloop+in+sigchld_handler */ |
| 6510 | sleep (1); | 6510 | usleep (1000); |
| 6511 | errno = 0; | 6511 | errno = 0; |
| 6512 | pid = wait3 (&w, WNOHANG | WUNTRACED, 0); | 6512 | pid = wait3 (&w, WNOHANG | WUNTRACED, 0); |
| 6513 | } | 6513 | } |