Fixed check I messed up recently.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22206 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-09-08 20:47:37 +00:00
parent 129302e4c1
commit 8eacd105eb
1 changed files with 1 additions and 1 deletions

View File

@ -2600,7 +2600,7 @@ _user_setpgid(pid_t processID, pid_t groupID)
// the thread must be the team's main thread, as that
// determines its process ID
if (thread == NULL && thread != thread->team->main_thread)
if (thread == NULL || thread != thread->team->main_thread)
return B_BAD_THREAD_ID;
// check if the thread is in a child team of the calling team and