[FIX] exit tizen app 72/26772/1
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 28 Aug 2014 13:59:55 +0000 (17:59 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 28 Aug 2014 14:04:44 +0000 (18:04 +0400)
add elm_exit call befor exit

Change-Id: I2c10e10085ca51f14f3af667a2e081053148fc6f
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
helper/libdaprobe.c

index 18d626f..cae4f0e 100755 (executable)
@@ -100,8 +100,15 @@ 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);
 }