[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/process.c,v
From: |
Sam Steingold |
Subject: |
[Emacs-diffs] Changes to emacs/src/process.c,v |
Date: |
Sun, 11 Mar 2007 21:08:45 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Sam Steingold <sds> 07/03/11 21:08:45
Index: process.c
===================================================================
RCS file: /sources/emacs/emacs/src/process.c,v
retrieving revision 1.501
retrieving revision 1.502
diff -u -b -r1.501 -r1.502
--- process.c 11 Mar 2007 18:16:50 -0000 1.501
+++ process.c 11 Mar 2007 21:08:45 -0000 1.502
@@ -6495,13 +6495,16 @@
#define WUNTRACED 0
#endif /* no WUNTRACED */
/* Keep trying to get a status until we get a definitive result. */
- do
- {
- sleep (1);
+ while (1) {
errno = 0;
pid = wait3 (&w, WNOHANG | WUNTRACED, 0);
+ if (! (pid < 0 && errno == EINTR))
+ break;
+ /* avoid a busyloop: wait3 is a system call, so we do not want
+ to prevent the kernel from actually sending SIGCHLD to emacs
+ by asking for it all the time */
+ sleep (1);
}
- while (pid < 0 && errno == EINTR);
if (pid <= 0)
{
- [Emacs-diffs] Changes to emacs/src/process.c,v, Kenichi Handa, 2007/03/01
- [Emacs-diffs] Changes to emacs/src/process.c,v, Sam Steingold, 2007/03/11
- [Emacs-diffs] Changes to emacs/src/process.c,v,
Sam Steingold <=
- [Emacs-diffs] Changes to emacs/src/process.c,v, Kim F. Storm, 2007/03/12
- [Emacs-diffs] Changes to emacs/src/process.c,v, Andreas Schwab, 2007/03/12
- [Emacs-diffs] Changes to emacs/src/process.c,v, Andreas Schwab, 2007/03/12
- [Emacs-diffs] Changes to emacs/src/process.c,v, Chong Yidong, 2007/03/17
- [Emacs-diffs] Changes to emacs/src/process.c,v, Chong Yidong, 2007/03/17
- [Emacs-diffs] Changes to emacs/src/process.c,v, YAMAMOTO Mitsuharu, 2007/03/20
- [Emacs-diffs] Changes to emacs/src/process.c,v, Sam Steingold, 2007/03/24
- [Emacs-diffs] Changes to emacs/src/process.c,v, Sam Steingold, 2007/03/25
- [Emacs-diffs] Changes to emacs/src/process.c,v, Juanma Barranquero, 2007/03/27
- [Emacs-diffs] Changes to emacs/src/process.c,v, Juanma Barranquero, 2007/03/29