From 997afbab8e16d4332739fd5746b86807aa9f028f Mon Sep 17 00:00:00 2001 From: wrowe Date: Tue, 25 Feb 2003 13:55:56 +0000 Subject: 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 --- threadproc/win32/signals.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'threadproc/win32/signals.c') 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) -- cgit v1.2.1