[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nmh-commits] CVS: nmh/sbr pidwait.c,1.4,1.5
From: |
Jon Steinhart <address@hidden> |
Subject: |
[Nmh-commits] CVS: nmh/sbr pidwait.c,1.4,1.5 |
Date: |
Wed, 20 Nov 2002 14:57:27 -0500 |
Update of /cvsroot/nmh/nmh/sbr
In directory subversions:/tmp/cvs-serv13759/sbr
Modified Files:
pidwait.c
Log Message:
Fixed a bug in the waitpid version where it would return incorrectly if a
child process was interrupted.
Index: pidwait.c
===================================================================
RCS file: /cvsroot/nmh/nmh/sbr/pidwait.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** pidwait.c 2 Jul 2002 22:09:14 -0000 1.4
--- pidwait.c 20 Nov 2002 19:57:19 -0000 1.5
***************
*** 12,15 ****
--- 12,16 ----
#include <h/mh.h>
#include <h/signals.h>
+ #include <errno.h>
#include <signal.h>
***************
*** 37,41 ****
#ifdef HAVE_WAITPID
! pid = waitpid(id, &status, 0);
#else
while ((pid = wait(&status)) != -1 && pid != id)
--- 38,43 ----
#ifdef HAVE_WAITPID
! while ((pid = waitpid(id, &status, 0)) == -1 && errno == EINTR)
! ;
#else
while ((pid = wait(&status)) != -1 && pid != id)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nmh-commits] CVS: nmh/sbr pidwait.c,1.4,1.5,
Jon Steinhart <address@hidden> <=