Refined pkg dependency 92/18592/1 accepted/tizen/generic/20140327.113926 accepted/tizen/ivi/20140327.210957 accepted/tizen/ivi/panda/20140327.194440 submit/tizen/20140327.041126
authoryoonki.park <yoonki.park@samsung.com>
Thu, 27 Mar 2014 01:41:29 +0000 (10:41 +0900)
committeryoonki.park <yoonki.park@samsung.com>
Thu, 27 Mar 2014 01:41:29 +0000 (10:41 +0900)
- Removed a dependency on debug-launchpad

Change-Id: I2df5fe55cda075d49217b29151c76dc0781cf4bf
Signed-off-by: yoonki.park <yoonki.park@samsung.com>
packaging/sdbd.spec
src/sdb.c

index d193ec5..93b4687 100644 (file)
@@ -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.
 
index 9029619..90f4cfa 100644 (file)
--- 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 */