summaryrefslogtreecommitdiff
path: root/threadproc/unix
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-04-03 22:53:04 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-04-03 22:53:04 +0000
commit57909f91360a48938b325ca81b85a938b038ca41 (patch)
tree9fb939745784f84b4a76665994b0ae23e2ca0022 /threadproc/unix
parentf86a30a6cba5dda7c1708eb278a0afadbabbc775 (diff)
downloadlibapr-57909f91360a48938b325ca81b85a938b038ca41.tar.gz
get rid of a parameter check in apr_proc_wait(); better to segfault
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/unix')
-rw-r--r--threadproc/unix/proc.c3
1 files changed, 1 insertions, 2 deletions
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;