]> git.hungrycats.org Git - linux/commit
[PATCH] spurious SIGCHLD from dying thread group leader
authorRoland McGrath <roland@redhat.com>
Tue, 5 Aug 2003 15:30:45 +0000 (08:30 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 5 Aug 2003 15:30:45 +0000 (08:30 -0700)
commit2ed879ff5aa9a6e9270f3393e05c5d35f3941736
tree355eb615d06929a38546a47885e2340d67b69c3a
parentda94b221286969d5fb84bc24fe0c47827987cfbd
[PATCH] spurious SIGCHLD from dying thread group leader

A dying initial thread (thread group leader) sends SIGCHLD when it exits,
but it ought to wait until all other threads exit as well.  The cases of
secondary threads exitting first were handled properly, but not this one.

This exit.c patch fixes that test case, and I think catches the other
potential bugs of this kind as well.  The signal.c change adds some bug
catchers, the second of which will trip on the test case in the absence
of the exit.c fix.
kernel/exit.c
kernel/signal.c