(cancel_handler): Correct order of parameters passed to kill.

This commit is contained in:
Ulrich Drepper 2003-01-05 04:10:16 +00:00
parent 6fc56e5eef
commit f0f9eb6ca3

View File

@ -54,9 +54,11 @@ static void cancel_handler (void *arg);
static void static void
cancel_handler (void *arg) 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 (); DO_LOCK ();