It's considered rude to try killing the kernel team.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13705 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
bcdb0e9460
commit
aeaa4a21a4
@ -1702,9 +1702,12 @@ kill_team(team_id id)
|
||||
GRAB_TEAM_LOCK();
|
||||
|
||||
team = team_get_team_struct_locked(id);
|
||||
if (team != NULL)
|
||||
tid = team->main_thread->id;
|
||||
else
|
||||
if (team != NULL) {
|
||||
if (team == kernel_team)
|
||||
retval = B_NOT_ALLOWED;
|
||||
else
|
||||
tid = team->main_thread->id;
|
||||
} else
|
||||
retval = B_BAD_THREAD_ID;
|
||||
|
||||
RELEASE_TEAM_LOCK();
|
||||
|
Loading…
x
Reference in New Issue
Block a user