Added TODO: Process groups should live on until the process is reaped.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24042 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1323,6 +1323,14 @@ thread_exit(void)
|
|||||||
|
|
||||||
// delete the team if we're its main thread
|
// delete the team if we're its main thread
|
||||||
if (deleteTeam) {
|
if (deleteTeam) {
|
||||||
|
// TODO: Deleting the process group is actually a problem. According to
|
||||||
|
// the POSIX standard the process should become a zombie and live on
|
||||||
|
// until it is reaped. Hence the process group would continue to exist
|
||||||
|
// for that time as well. That is moving processes to it (setpgid())
|
||||||
|
// should work. This can actually happen e.g. when executing something
|
||||||
|
// like "echo foobar | wc" in the shell. The built-in "echo" could
|
||||||
|
// exit() even before setpgid() has been invoked for the "wc" child.
|
||||||
|
// Cf. bug #1799.
|
||||||
team_delete_process_group(freeGroup);
|
team_delete_process_group(freeGroup);
|
||||||
team_delete_team(team);
|
team_delete_team(team);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user