summaryrefslogtreecommitdiff
path: root/threadproc/win32/signals.c
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-02-25 13:55:56 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-02-25 13:55:56 +0000
commit997afbab8e16d4332739fd5746b86807aa9f028f (patch)
tree696e6e24d1d8e37e53bda8611d2d1b69fc9adea8 /threadproc/win32/signals.c
parent30d64fb554fe7f87fabaad34f1082dfd65a7f1c3 (diff)
downloadlibapr-997afbab8e16d4332739fd5746b86807aa9f028f.tar.gz
Once we apr_proc_kill on Unix, we don't expect to be able to recover an
exit code (in fact we waitpid on darwin to clear the zombies, which seems like behavior we would need on other bsd-derived platforms as well.) So we don't expect to be able to on Win32 either; this patch simply reinforces that notion by return APR_EPROC_UNKNOWN when we encounter an apr_proc_t that was already kill()ed or waitpid()ed. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64383 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/win32/signals.c')
-rw-r--r--threadproc/win32/signals.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/threadproc/win32/signals.c b/threadproc/win32/signals.c
index 49d59d485..b10ccc43d 100644
--- a/threadproc/win32/signals.c
+++ b/threadproc/win32/signals.c
@@ -74,8 +74,9 @@ APR_DECLARE(apr_status_t) apr_proc_kill(apr_proc_t *proc, int signal)
}
CloseHandle(proc->hproc);
proc->hproc = NULL;
+ return APR_SUCCESS;
}
- return APR_SUCCESS;
+ return APR_EPROC_UNKNOWN;
}
void apr_signal_init(apr_pool_t *pglobal)