mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 02:40:08 +00:00
(cancel_handler): Correct order of parameters passed to kill.
This commit is contained in:
parent
6fc56e5eef
commit
f0f9eb6ca3
@ -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 ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user