aboutsummaryrefslogtreecommitdiff
path: root/threadproc/unix
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2003-02-04 20:12:29 +0000
committerJeff Trawick <trawick@apache.org>2003-02-04 20:12:29 +0000
commitaf636a177e7cc7378c9cee81d6196539bc8fc57c (patch)
treefdfb293ae165df874c35560c309ed8fec2fc45f9 /threadproc/unix
parente6bb742b8de20cdac24318105140db56cf48087f (diff)
downloadapr-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.c2
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) {