From f0f9eb6ca3a08085f2e4db747f44afa6afed8969 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 5 Jan 2003 04:10:16 +0000 Subject: (cancel_handler): Correct order of parameters passed to kill. --- sysdeps/unix/sysv/linux/i386/system.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sysv/linux/i386') 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 (); -- cgit 1.4.1