From c72dc476ff38e68878de683287b888c596b2cc3f Mon Sep 17 00:00:00 2001 From: "yoonki.park" Date: Thu, 27 Mar 2014 10:41:29 +0900 Subject: [PATCH] Refined pkg dependency - Removed a dependency on debug-launchpad Change-Id: I2df5fe55cda075d49217b29151c76dc0781cf4bf Signed-off-by: yoonki.park --- packaging/sdbd.spec | 2 -- src/sdb.c | 25 ------------------------- 2 files changed, 27 deletions(-) diff --git a/packaging/sdbd.spec b/packaging/sdbd.spec index d193ec5..93b4687 100644 --- a/packaging/sdbd.spec +++ b/packaging/sdbd.spec @@ -14,8 +14,6 @@ BuildRequires: capi-system-info-devel >= 0.2.0 BuildRequires: cmake >= 2.8.3 BuildRequires: pkgconfig(libtzplatform-config) Requires: dbus -Requires: debug-launchpad -Requires(post): /usr/bin/debug_launchpad_preloading_preinitializing_daemon %description Description: SDB daemon. diff --git a/src/sdb.c b/src/sdb.c index 9029619..90f4cfa 100644 --- a/src/sdb.c +++ b/src/sdb.c @@ -1127,30 +1127,6 @@ int set_developer_privileges() { } #define ONDEMAND_ROOT_PATH tzplatform_getenv(TZ_SDK_HOME) -static void execute_required_process() { - - FILE *pre_proc_file = popen("pidof debug_launchpad_preloading_preinitializing_daemon", "r"); - - if(pre_proc_file == NULL) { - D("fail to get the pidof debug_launchpad_preloading_preinitializing_daemon"); - return; - } - - int result = 0; - while(!feof(pre_proc_file)) { - int pid = 0; - result += fscanf(pre_proc_file, "%d", &pid); - if(pid > 0) { - kill(pid, SIGKILL); - } - } - D("Kill %d debug launchpad daemon", result); - - pclose(pre_proc_file); - - system("/usr/bin/debug_launchpad_preloading_preinitializing_daemon &"); -} - static void init_sdk_requirements() { struct stat st; @@ -1175,7 +1151,6 @@ static void init_sdk_requirements() { } } - execute_required_process(); } #endif /* !SDB_HOST */ -- 2.7.4