* Changed team_get_process_group_locked() to have a session parameter instead

of a team to avoid confusion. It now also accepts a NULL session pointer in
  which case the actual group's session doesn't matter.
* Fixed the race condition in send_signal_etc() that could allow accessing an
  invalid team pointer.
* Jerome's earlier change already fixed bug #841, and this also fixed bug #855.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18941 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-09-26 12:51:59 +00:00
parent 8e70f1aa5b
commit d9766fe30b
3 changed files with 33 additions and 42 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ team_id team_create_team(const char *path, const char *name, char **args, int ar
status_t wait_for_team(team_id id, status_t *returnCode);
void team_remove_team(struct team *team, struct process_group **_freeGroup);
void team_delete_team(struct team *team);
struct process_group *team_get_process_group_locked(struct team *team, pid_t id);
struct process_group *team_get_process_group_locked(struct process_session *session, pid_t id);
void team_delete_process_group(struct process_group *group);
struct team *team_get_kernel_team(void);
team_id team_get_kernel_team_id(void);