[FIX] app terminate 06/28206/2
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 30 Sep 2014 09:20:09 +0000 (13:20 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 30 Sep 2014 09:33:00 +0000 (13:33 +0400)
Change-Id: Ie9369556859bf4636fa8ffae884189ccec8403d2
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
helper/libdaprobe.c

index 5c57af2..87f0317 100755 (executable)
@@ -104,16 +104,11 @@ static void _configure(char* configstr)
 
 void application_exit()
 {
-       void (*elm_exit)(void);
-
        PRINTMSG("App termination: EXIT(0)");
        /* TODO think of another way for correct app termination */
 
-       elm_exit = dlsym(RTLD_DEFAULT, "elm_exit");
-       if (elm_exit)
-               elm_exit();
-
-       exit(0);
+       /* Kill yourself!! */
+       killpg(getpgrp(), SIGKILL);
 }
 
 // create socket to daemon and connect