From a64d39004ce90aa9a2da57c65ae7c8a192e3dc89 Mon Sep 17 00:00:00 2001 From: bjh Date: Tue, 26 Oct 1999 15:16:56 +0000 Subject: 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 --- threadproc/os2/proc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'threadproc/os2') 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) { -- cgit v1.2.1