From: Roland McGrath Date: Wed, 9 Apr 2008 06:12:30 +0000 (-0700) Subject: fix dangling zombie when new parent ignores children X-Git-Tag: v2.6.27-rc1~1041^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=666f164f4fbfa78bd00fb4b74788b42a39842c64;p=pandora-kernel.git fix dangling zombie when new parent ignores children This fixes an arcane bug that we think was a regression introduced by commit b2b2cbc4b2a2f389442549399a993a8306420baf. When a parent ignores SIGCHLD (or uses SA_NOCLDWAIT), its children would self-reap but they don't if it's using ptrace on them. When the parent thread later exits and ceases to ptrace a child but leaves other live threads in the parent's thread group, any zombie children are left dangling. The fix makes them self-reap then, as they would have done earlier if ptrace had not been in use. Signed-off-by: Roland McGrath --- Reading git-diff-tree failed