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:
parent
129302e4c1
commit
8eacd105eb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue