Process groups are no longer searched via their team/session, but by using a separate

hash. This also allows them to stay valid after the group leader died when there are
other teams left in it. This closes bug #1.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18622 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-08-24 22:58:48 +00:00
parent 3e975f9210
commit 6961cdf6f2
2 changed files with 55 additions and 33 deletions
+3 -3
View File
@@ -57,11 +57,11 @@ struct death_entry {
struct process_session {
pid_t id;
struct list groups;
int32 group_count;
};
struct process_group {
struct list_link link;
struct process_group *next; // next in hash
struct process_session *session;
pid_t id;
sem_id dead_child_sem;
@@ -86,7 +86,7 @@ struct team_watcher {
// this is a soft limit for the number of dead entries in a team
struct team {
struct team *next; /* next team in the hash */
struct team *next; // next in hash
struct team *siblings_next;
struct team *parent;
struct team *children;