From d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 3 Mar 2009 18:28:45 -0800 Subject: auto import from //depot/cupcake/@135843 --- cmds/system_server/system_main.cpp | 61 -------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 cmds/system_server/system_main.cpp (limited to 'cmds/system_server/system_main.cpp') diff --git a/cmds/system_server/system_main.cpp b/cmds/system_server/system_main.cpp deleted file mode 100644 index ca16e57..0000000 --- a/cmds/system_server/system_main.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Main entry of system server process. - * - * Calls the standard system initialization function, and then - * puts the main thread into the thread pool so it can handle - * incoming transactions. - * - */ - -#define LOG_TAG "sysproc" - -#include -#include - -#include - -#include -#include - -#include -#include -#include - -using namespace android; - -extern "C" status_t system_init(); - -bool finish_system_init() -{ - return true; -} - -static void blockSignals() -{ - sigset_t mask; - int cc; - - sigemptyset(&mask); - sigaddset(&mask, SIGQUIT); - sigaddset(&mask, SIGUSR1); - cc = sigprocmask(SIG_BLOCK, &mask, NULL); - assert(cc == 0); -} - -int main(int argc, const char* const argv[]) -{ - LOGI("System server is starting with pid=%d.\n", getpid()); - - blockSignals(); - - // You can trust me, honestly! - LOGW("*** Current priority: %d\n", getpriority(PRIO_PROCESS, 0)); - setpriority(PRIO_PROCESS, 0, -1); - - #if HAVE_ANDROID_OS - //setgid(GID_SYSTEM); - //setuid(UID_SYSTEM); - #endif - - system_init(); -} -- cgit v1.1