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 /src/process.c | |
| 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).
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | } |