diff options
author | Jeff Trawick <trawick@apache.org> | 2003-02-04 20:12:29 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2003-02-04 20:12:29 +0000 |
commit | af636a177e7cc7378c9cee81d6196539bc8fc57c (patch) | |
tree | fdfb293ae165df874c35560c309ed8fec2fc45f9 /threadproc/unix | |
parent | e6bb742b8de20cdac24318105140db56cf48087f (diff) | |
download | apr-af636a177e7cc7378c9cee81d6196539bc8fc57c.tar.gz apr-af636a177e7cc7378c9cee81d6196539bc8fc57c.zip |
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: https://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) { |