Messages in this thread | | | Date | Sun, 14 Dec 2003 23:17:02 +0100 (CET) | From | Ingo Molnar <> | Subject | Re: [patch] Re: Problem with exiting threads under NPTL |
| |
On Sun, 14 Dec 2003, Linus Torvalds wrote:
> Even though the parent ignores SIGCHLD it _can_ be running on another > CPU in "wait4()". And since we drop the tasklist lock before we do the > "release_task()" on the leader, and since the leader is still marked > TASK_ZOMBIE, we may have _two_ different people trying to release it. > First the parent, and then the last thread that still remembers the > leader.
are you sure this can happen? eligible_child() does this:
if (p->exit_signal == -1 && !p->ptrace) return 0;
so can the parallel situation really happen?
Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |