From daba1dee0e4966ba077d914e12d5524e65a3dc5c Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Tue, 3 Apr 2001 22:53:04 +0000 Subject: get rid of a parameter check in apr_proc_wait(); better to segfault git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61451 13f79535-47bb-0310-9956-ffa450edef68 --- threadproc/unix/proc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'threadproc/unix/proc.c') diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c index 355e83b97..4c4f74d54 100644 --- a/threadproc/unix/proc.c +++ b/threadproc/unix/proc.c @@ -382,8 +382,7 @@ apr_status_t apr_proc_wait(apr_proc_t *proc, 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; -- cgit v1.2.3