]> git.neil.brown.name Git - history.git/commit
[PATCH] Thread group exit problem reappeared
authorDave McCracken <dmccr@us.ibm.com>
Sat, 18 May 2002 04:36:41 +0000 (21:36 -0700)
committerChristoph Hellwig <hch@sb.bsdonline.org>
Sat, 18 May 2002 04:36:41 +0000 (21:36 -0700)
commit3bfae933dbdebb085216440d1eea406dadfa3d64
tree9712455b20dce0b50987dfd9e3ba9812cf645949
parentfa82a1dad8713f50233150710637981776dcdf3a
[PATCH] Thread group exit problem reappeared

A long time ago there was thread group code that at exit time tried to
reparent a task to another task in the thread group.  I discovered a major
race condition in this code, and submitted a patch that removed it.  This
patch was accepted in, I think, 2.4.12.  The code reappeared in 2.4.18 and
sometime in the 2.5 tree before 2.5.15, breaking applications that use
thread groups.

As part of chasing this down, I figured out a way to remove the race
condition while still preserving this behavior.  I've attached a patch
against 2.5.15 that fixes it.
kernel/exit.c