diff options
Diffstat (limited to 'threadproc/os2/proc.c')
-rw-r--r-- | threadproc/os2/proc.c | 3 |
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) { |