summaryrefslogtreecommitdiff
path: root/threadproc/netware/proc.c
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2002-06-10 16:20:52 +0000
committerBradley Nicholes <bnicholes@apache.org>2002-06-10 16:20:52 +0000
commit543d7b69cea501c0e6e1d4609fd48cd8f23c3804 (patch)
tree807a6103468430add22d58f50df834489c2b736c /threadproc/netware/proc.c
parenta2b4d2c8471745a8daedc8caae3a67f214ef37ec (diff)
downloadapr-543d7b69cea501c0e6e1d4609fd48cd8f23c3804.tar.gz
Check the detached flag and spawn the NLM appropriately.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63487 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/netware/proc.c')
-rw-r--r--threadproc/netware/proc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/threadproc/netware/proc.c b/threadproc/netware/proc.c
index 7a4091607..dd5dd953f 100644
--- a/threadproc/netware/proc.c
+++ b/threadproc/netware/proc.c
@@ -294,6 +294,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *newproc,
apr_pool_t *pool)
{
wiring_t wire;
+ int addr_space;
wire.infd = attr->child_in ? attr->child_in->filedes : FD_UNUSED;
wire.outfd = attr->child_out ? attr->child_out->filedes : FD_UNUSED;
@@ -303,9 +304,9 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *newproc,
newproc->out = attr->parent_out;
newproc->err = attr->parent_err;
- /* XXX Switch to spawning in separate address spaces once the address
- space shutdown problem is fixed. */
- if ((newproc->pid = processve(progname, PROC_CURRENT_SPACE, (const char**)env, &wire,
+ addr_space = attr->detached ? 0 : PROC_CURRENT_SPACE;
+
+ if ((newproc->pid = processve(progname, addr_space, (const char**)env, &wire,
NULL, NULL, (const char **)args)) == 0) {
return errno;
}