base: process: Abort setting the process group if one of the threads fails to switch
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
@@ -266,6 +266,7 @@ void android_os_Process_setProcessGroup(JNIEnv* env, jobject clazz, int pid, jin
|
||||
if (set_sched_policy(t_pid, (grp == ANDROID_TGROUP_BG_NONINTERACT) ?
|
||||
SP_BACKGROUND : SP_FOREGROUND)) {
|
||||
signalExceptionForGroupError(env, clazz, errno);
|
||||
break;
|
||||
}
|
||||
}
|
||||
closedir(d);
|
||||
|
||||
Reference in New Issue
Block a user