]> git.baikalelectronics.ru Git - kernel.git/commit
tracehook: fix exit_signal=0 case
authorRoland McGrath <roland@redhat.com>
Thu, 31 Jul 2008 09:04:09 +0000 (02:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Aug 2008 19:01:11 +0000 (12:01 -0700)
commit61fc6fa189c7c2c6e546c2de425cfe00fa972855
tree4936df589df33c671e2e98ea45b89e7f45278f61
parent848674162fb838ae92e934c162620dcc3de53e5f
tracehook: fix exit_signal=0 case

My commit a2823ab4fa9c20b9db0285990da11bffd24e6791 introduced a regression
(sorry about that) for the odd case of exit_signal=0 (e.g. clone_flags=0).
This is not a normal use, but it's used by a case in the glibc test suite.

Dying with exit_signal=0 sends no signal, but it's supposed to wake up a
parent's blocked wait*() calls (unlike the delayed_group_leader case).
This fixes tracehook_notify_death() and its caller to distinguish a
"signal 0" wakeup from the delayed_group_leader case (with no wakeup).

Signed-off-by: Roland McGrath <roland@redhat.com>
Tested-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/tracehook.h
kernel/exit.c