trawick 01/04/03 15:53:04
Modified: threadproc/unix proc.c
Log:
get rid of a parameter check in apr_proc_wait(); better to segfault
Revision Changes Path
1.46 +1 -2 apr/threadproc/unix/proc.c
Index: proc.c
===================================================================
RCS file: /home/cvs/apr/threadproc/unix/proc.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- proc.c 2001/02/16 04:16:18 1.45
+++ proc.c 2001/04/03 22:53:04 1.46
@@ -382,8 +382,7 @@
apr_wait_how_e waithow)
{
pid_t status;
- if (!proc)
- return APR_ENOPROC;
+
if (waithow == APR_WAIT) {
if ((status = waitpid(proc->pid, NULL, WUNTRACED)) > 0) {
return APR_CHILD_DONE;