trawick 01/04/03 17:26:46
Modified: lib apr_pools.c
Log:
If the process no longer exists, we might as well remember not to
SIGTERM/SIGKILL it later. I can't imagine that doing so would hurt,
but it does present some confusion when looking at systraces and
seeing that some syscalls fail.
Revision Changes Path
1.91 +1 -1 apr/lib/apr_pools.c
Index: apr_pools.c
===================================================================
RCS file: /home/cvs/apr/lib/apr_pools.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- apr_pools.c 2001/03/11 23:24:56 1.90
+++ apr_pools.c 2001/04/04 00:26:45 1.91
@@ -1237,7 +1237,7 @@
#ifndef NEED_WAITPID
/* Pick up all defunct processes */
for (p = procs; p; p = p->next) {
- if (apr_proc_wait(p->pid, APR_NOWAIT) == APR_CHILD_DONE) {
+ if (apr_proc_wait(p->pid, APR_NOWAIT) != APR_CHILD_NOTDONE) {
p->kill_how = kill_never;
}
}