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:
San Mehat
2009-12-03 12:21:28 -08:00
parent 8c411fb139
commit 0a42b811ae

View File

@@ -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);