about summary refs log tree commit diff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-05 04:10:16 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-05 04:10:16 +0000
commitf0f9eb6ca3a08085f2e4db747f44afa6afed8969 (patch)
tree6aa1855f9e3c9d4db64d3c2aa47e0e5680df86f3 /sysdeps/unix/sysv
parent6fc56e5eef489fbbb0c3e352b5b1ccecfd9a623b (diff)
downloadglibc-f0f9eb6ca3a08085f2e4db747f44afa6afed8969.tar.gz
glibc-f0f9eb6ca3a08085f2e4db747f44afa6afed8969.tar.xz
glibc-f0f9eb6ca3a08085f2e4db747f44afa6afed8969.zip
(cancel_handler): Correct order of parameters passed to kill.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/i386/system.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/system.c b/sysdeps/unix/sysv/linux/i386/system.c
index c7287e473e..69eb2cd2ad 100644
--- a/sysdeps/unix/sysv/linux/i386/system.c
+++ b/sysdeps/unix/sysv/linux/i386/system.c
@@ -54,9 +54,11 @@ static void cancel_handler (void *arg);
 static void
 cancel_handler (void *arg)
 {
-  __kill (SIGKILL, *(pid_t *) arg);
+  pid_t child = *(pid_t *) arg;
 
-  TEMP_FAILURE_RETRY (__waitpid (*(pid_t *) arg, NULL, 0));
+  INTERNAL_SYSCALL (kill, 2, child, SIGKILL);
+
+  TEMP_FAILURE_RETRY (__waitpid (child, NULL, 0));
 
   DO_LOCK ();