summaryrefslogtreecommitdiff
path: root/threadproc/os2
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2001-09-20 08:59:31 +0000
committerGreg Stein <gstein@apache.org>2001-09-20 08:59:31 +0000
commitf49bd22bf61423ef1ef91f883f10fbe4366a48d0 (patch)
treeff0d0e062cdca382a2e2f2d0c46fa69fc5090d6f /threadproc/os2
parentf92418bee86c72108b380a90e67dcbba859d8cfd (diff)
downloadapr-f49bd22bf61423ef1ef91f883f10fbe4366a48d0.tar.gz
Return the exit code from apr_proc_wait(). This is a combination of a patch
from Justin and Bill, plus a few additional tweaks. Submitted by: Justin Erenkrantz <jerenkrantz@ebuilt.com>, Bill Tutt <billtut@microsoft.com> Reviewed by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62350 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2')
-rw-r--r--threadproc/os2/proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c
index f890986fb..f092e6716 100644
--- a/threadproc/os2/proc.c
+++ b/threadproc/os2/proc.c
@@ -527,6 +527,7 @@ APR_DECLARE(apr_status_t) apr_proc_wait_all_procs(apr_proc_t *proc, apr_wait_t *
APR_DECLARE(apr_status_t) apr_proc_wait(apr_proc_t *proc,
+ apr_wait_t *exitcode,
apr_wait_how_e wait)
{
RESULTCODES codes;
@@ -538,6 +539,8 @@ APR_DECLARE(apr_status_t) apr_proc_wait(apr_proc_t *proc,
rc = DosWaitChild(DCWA_PROCESS, wait == APR_WAIT ? DCWW_WAIT : DCWW_NOWAIT, &codes, &pid, proc->pid);
+ if (exitcode)
+ *exitcode = codes.codeResult;
if (rc == 0) {
return APR_CHILD_DONE;
} else if (rc == ERROR_CHILD_NOT_COMPLETE) {