From 543d7b69cea501c0e6e1d4609fd48cd8f23c3804 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Mon, 10 Jun 2002 16:20:52 +0000 Subject: 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 --- threadproc/netware/proc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'threadproc/netware/proc.c') 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; } -- cgit v1.2.1