diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2003-02-04 20:12:29 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2003-02-04 20:12:29 +0000 |
commit | 49a9b18593b3d20705b905d7866171731c2b5a88 (patch) | |
tree | fdfb293ae165df874c35560c309ed8fec2fc45f9 /threadproc/unix | |
parent | ed2f84288ae9541acc7cee5989181bcf28ecaeaf (diff) | |
download | libapr-49a9b18593b3d20705b905d7866171731c2b5a88.tar.gz |
Fix a bug in apr_proc_create() that could cause a new child process
to run the parent's code if setrlimit() fails.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64328 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/unix')
-rw-r--r-- | threadproc/unix/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c index 755221f19..8c07e8cf9 100644 --- a/threadproc/unix/proc.c +++ b/threadproc/unix/proc.c @@ -373,7 +373,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, } if ((status = limit_proc(attr)) != APR_SUCCESS) { - return status; + exit(-1); /* We have big problems, the child should exit. */ } if (attr->cmdtype == APR_SHELLCMD) { |