From 8eacd105eb884f0c0bc7ebf7e38728fd515f1bc1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 8 Sep 2007 20:47:37 +0000 Subject: [PATCH] Fixed check I messed up recently. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22206 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/team.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/team.cpp b/src/system/kernel/team.cpp index 0ded65caa1..edabef229c 100644 --- a/src/system/kernel/team.cpp +++ b/src/system/kernel/team.cpp @@ -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