projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fc56e5
)
(cancel_handler): Correct order of parameters passed to kill.
author
Ulrich Drepper
<drepper@redhat.com>
Sun, 5 Jan 2003 04:10:16 +0000
(
04:10
+0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Sun, 5 Jan 2003 04:10:16 +0000
(
04:10
+0000)
sysdeps/unix/sysv/linux/i386/system.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/i386/system.c
b/sysdeps/unix/sysv/linux/i386/system.c
index c7287e473ee185af972690d402e3afba40eda39c..69eb2cd2ad19bb30d2b8f4b48f1388d8776357b3 100644
(file)
--- 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 ();