summaryrefslogtreecommitdiff
path: root/threadproc/win32/signals.c
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2000-10-06 17:24:41 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2000-10-06 17:24:41 +0000
commit6378a281a5e8c002a97bde6208e879e8c921c747 (patch)
tree1bb6f5080b75482c802151d16e1f580d47313e14 /threadproc/win32/signals.c
parent6e116dc381a124f517ac0316bd2d5939434cf271 (diff)
downloadlibapr-6378a281a5e8c002a97bde6208e879e8c921c747.tar.gz
Here it is, the Win32 part of the big canonical errors patch.
The reason is really, really simple. If we ever choose to mix clib and dos error codes, they criss-cross and don't line up, but they share the same number space. As I wrote the new APR_IS_ERROR macros, I realized we were about to shoot ourselves in the foot. These changes nearly entirely affect Win32 only. The next big patch will affect all of the rv == APR_ENOENT type problems throughout the system. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60553 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/win32/signals.c')
-rw-r--r--threadproc/win32/signals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/win32/signals.c b/threadproc/win32/signals.c
index 8346c40f5..f19e36e7b 100644
--- a/threadproc/win32/signals.c
+++ b/threadproc/win32/signals.c
@@ -67,7 +67,7 @@
apr_status_t apr_kill(apr_proc_t *proc, int signal)
{
if (TerminateProcess((HANDLE)proc->pid, signal) == 0) {
- return GetLastError();
+ return apr_get_os_error();
}
return APR_SUCCESS;
}