From: Ulrich Drepper Date: Sun, 5 Jan 2003 04:10:16 +0000 (+0000) Subject: (cancel_handler): Correct order of parameters passed to kill. X-Git-Tag: cvs/glibc-2_3_2~372 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0f9eb6ca3a08085f2e4db747f44afa6afed8969;p=thirdparty%2Fglibc.git (cancel_handler): Correct order of parameters passed to kill. --- diff --git a/sysdeps/unix/sysv/linux/i386/system.c b/sysdeps/unix/sysv/linux/i386/system.c index c7287e473ee..69eb2cd2ad1 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 ();