summaryrefslogtreecommitdiff
path: root/threadproc/win32/signals.c
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-09-09 06:03:05 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-09-09 06:03:05 +0000
commit4c2e72e228c29b3ef69ea89563de8d47eb663de5 (patch)
tree2bfd46d5bb54ee12ff41ac1f18e8794f951f54d5 /threadproc/win32/signals.c
parent55352cd4142c2c65f109f1f3a8ca85d8b9a804db (diff)
downloadlibapr-4c2e72e228c29b3ef69ea89563de8d47eb663de5.tar.gz
Fix the apr_proc_create for win32. In order to do so, this patch
introduces a flags arg for apr_filepath_get(), like apr_filepath_merge(), that allows the APR_FILEPATH_NATIVE result format. This launches win32 processes with the Unicode semantics (although it runs sbcs apps equally well) and changes the default to 'not detached', in sync with the unix default. Finally, assures apr_filepath_get() uses the '/' semantics on OS2 by default. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62296 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 308a59c51..ff0f941b8 100644
--- a/threadproc/win32/signals.c
+++ b/threadproc/win32/signals.c
@@ -66,7 +66,7 @@
/* Windows only really support killing process, but that will do for now. */
APR_DECLARE(apr_status_t) apr_proc_kill(apr_proc_t *proc, int signal)
{
- if (TerminateProcess((HANDLE)proc->pid, signal) == 0) {
+ if (TerminateProcess((HANDLE)proc->hproc, signal) == 0) {
return apr_get_os_error();
}
return APR_SUCCESS;