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:
Ingo Weinhold 2005-07-16 23:38:07 +00:00
parent bcdb0e9460
commit aeaa4a21a4
1 changed files with 6 additions and 3 deletions

View File

@ -1702,9 +1702,12 @@ kill_team(team_id id)
GRAB_TEAM_LOCK(); GRAB_TEAM_LOCK();
team = team_get_team_struct_locked(id); team = team_get_team_struct_locked(id);
if (team != NULL) if (team != NULL) {
tid = team->main_thread->id; if (team == kernel_team)
else retval = B_NOT_ALLOWED;
else
tid = team->main_thread->id;
} else
retval = B_BAD_THREAD_ID; retval = B_BAD_THREAD_ID;
RELEASE_TEAM_LOCK(); RELEASE_TEAM_LOCK();