diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 1999-10-26 15:16:56 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 1999-10-26 15:16:56 +0000 |
commit | a64d39004ce90aa9a2da57c65ae7c8a192e3dc89 (patch) | |
tree | a39300a36a9a76fb627abc5f0c5f7d61294af88f /threadproc/os2 | |
parent | 24862f2cc85bad4b00a581c511f51316424991d9 (diff) | |
download | libapr-a64d39004ce90aa9a2da57c65ae7c8a192e3dc89.tar.gz |
OS/2: Put support for detached processes back into ap_create_process(),
removed by previous change.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59420 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2')
-rw-r--r-- | threadproc/os2/proc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c index 105668a9b..e5f5ab6a8 100644 --- a/threadproc/os2/proc.c +++ b/threadproc/os2/proc.c @@ -363,7 +363,10 @@ ap_status_t ap_create_process(struct proc_t **new, const char *progname, *env_block_pos = 0; /* environment block is terminated by a double null */ - status = DosExecPgm(error_object, sizeof(error_object), EXEC_ASYNC, cmdline, env_block, &rescodes, cmdline); + status = DosExecPgm(error_object, sizeof(error_object), + attr->detached ? EXEC_BACKGROUND : EXEC_ASYNC, + cmdline, env_block, &rescodes, cmdline); + (*new)->pid = rescodes.codeTerminate; if (attr->currdir != NULL) { |