summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclar <clar@13f79535-47bb-0310-9956-ffa450edef68>2004-06-11 20:23:09 +0000
committerclar <clar@13f79535-47bb-0310-9956-ffa450edef68>2004-06-11 20:23:09 +0000
commitf2ad8701668b17c381f2af7da9ea30d32791fcb6 (patch)
tree0084381393a8e029131bff2118e040b35a522dd3
parent10b465782238791f0a0bcbb14e19ca950570d8a5 (diff)
downloadlibapr-f2ad8701668b17c381f2af7da9ea30d32791fcb6.tar.gz
Replaced APR_PROGRAM_ENV with new enum APR_PROGRAM_ADDRSPACE when starting a child program
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65184 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--threadproc/netware/proc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/threadproc/netware/proc.c b/threadproc/netware/proc.c
index dce5758f7..2b3973576 100644
--- a/threadproc/netware/proc.c
+++ b/threadproc/netware/proc.c
@@ -173,9 +173,8 @@ APR_DECLARE(apr_status_t) apr_procattr_dir_set(apr_procattr_t *attr,
APR_DECLARE(apr_status_t) apr_procattr_cmdtype_set(apr_procattr_t *attr,
apr_cmdtype_e cmd)
{
- if ((cmd != APR_PROGRAM) && (cmd != APR_PROGRAM_ENV))
- return APR_ENOTIMPL;
- attr->cmdtype = cmd;
+ if (cmd == APR_PROGRAM_ADDRSPACE)
+ attr->cmdtype = cmd;
return APR_SUCCESS;
}
@@ -288,7 +287,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *newproc,
/* attr->detached and PROC_DETACHED do not mean the same thing. attr->detached means
* start the NLM in a separate address space. PROC_DETACHED means don't wait for the
* NLM to unload by calling wait() or waitpid(), just clean up */
- addr_space = PROC_LOAD_SILENT | ((attr->cmdtype == APR_PROGRAM_ENV) ? 0 : PROC_CURRENT_SPACE);
+ addr_space = PROC_LOAD_SILENT | ((attr->cmdtype == APR_PROGRAM_ADDRSPACE) ? 0 : PROC_CURRENT_SPACE);
addr_space |= (attr->detached ? PROC_DETACHED : 0);
if (attr->currdir) {