summaryrefslogtreecommitdiff
path: root/cmds/system_server/library/system_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/system_server/library/system_init.cpp')
-rw-r--r--cmds/system_server/library/system_init.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds/system_server/library/system_init.cpp b/cmds/system_server/library/system_init.cpp
index 745c34a0478c..3e52d30f432d 100644
--- a/cmds/system_server/library/system_init.cpp
+++ b/cmds/system_server/library/system_init.cpp
@@ -94,12 +94,12 @@ extern "C" status_t system_init()
if (methodId == NULL) {
return UNKNOWN_ERROR;
}
- env->CallStaticVoidMethod(clazz, methodId);
- ALOGI("System server: entering thread pool.\n");
+ ALOGI("System server: entering thread pool.");
ProcessState::self()->startThreadPool();
- IPCThreadState::self()->joinThreadPool();
- ALOGI("System server: exiting thread pool.\n");
+
+ // This is the main thread of the system server, and will never exit.
+ env->CallStaticVoidMethod(clazz, methodId);
return NO_ERROR;
}