am d345c6ac: am 0a42b811: base: process: Abort setting the process group if one of the threads fails to switch
Merge commit 'd345c6acedb22c9408553ef9f38c196984177e6b' into eclair-mr2-plus-aosp * commit 'd345c6acedb22c9408553ef9f38c196984177e6b': base: process: Abort setting the process group if one of the threads fails to switch
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) ?
|
if (set_sched_policy(t_pid, (grp == ANDROID_TGROUP_BG_NONINTERACT) ?
|
||||||
SP_BACKGROUND : SP_FOREGROUND)) {
|
SP_BACKGROUND : SP_FOREGROUND)) {
|
||||||
signalExceptionForGroupError(env, clazz, errno);
|
signalExceptionForGroupError(env, clazz, errno);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir(d);
|
closedir(d);
|
||||||
|
|||||||
Reference in New Issue
Block a user