summaryrefslogtreecommitdiff
path: root/cmds/system_server/system_main.cpp
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2012-10-24 10:43:42 -0700
committerMike Lockwood <lockwood@google.com>2012-10-24 10:43:42 -0700
commit6931061de6471e598d36e6c101ce9bb95036a80c (patch)
tree9c0a2d44af0e4c6299768aa84cc8b15372c3c87c /cmds/system_server/system_main.cpp
parente31e0f8c7c03b56a044ca9cfa155ea2745918136 (diff)
Move non-Java commands to frameworks/native
Change-Id: Id77c2cecb27cec500dfe066e4430f9e67802a433 Signed-off-by: Mike Lockwood <lockwood@google.com>
Diffstat (limited to 'cmds/system_server/system_main.cpp')
-rw-r--r--cmds/system_server/system_main.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/cmds/system_server/system_main.cpp b/cmds/system_server/system_main.cpp
deleted file mode 100644
index ddff065c916d..000000000000
--- a/cmds/system_server/system_main.cpp
+++ /dev/null
@@ -1,56 +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 <binder/IPCThreadState.h>
-#include <utils/Log.h>
-
-#include <private/android_filesystem_config.h>
-
-#include <sys/time.h>
-#include <sys/resource.h>
-
-#include <signal.h>
-#include <stdio.h>
-#include <unistd.h>
-
-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[])
-{
- ALOGI("System server is starting with pid=%d.\n", getpid());
-
- blockSignals();
-
- // You can trust me, honestly!
- ALOGW("*** Current priority: %d\n", getpriority(PRIO_PROCESS, 0));
- setpriority(PRIO_PROCESS, 0, -1);
-
- system_init();
-}