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:
@@ -2600,7 +2600,7 @@ _user_setpgid(pid_t processID, pid_t groupID)
|
|||||||
|
|
||||||
// the thread must be the team's main thread, as that
|
// the thread must be the team's main thread, as that
|
||||||
// determines its process ID
|
// 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;
|
return B_BAD_THREAD_ID;
|
||||||
|
|
||||||
// check if the thread is in a child team of the calling team and
|
// check if the thread is in a child team of the calling team and
|
||||||
|
|||||||
Reference in New Issue
Block a user