fixed N_SE-20639 : sorry popup on termination
authorMyoungJune Park <mj2004.park@samsung.com>
Tue, 15 Jan 2013 08:25:17 +0000 (17:25 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Tue, 15 Jan 2013 08:25:17 +0000 (17:25 +0900)
setting-common/src/setting-common-data-slp-setting.c
src/setting.c

index 43ffbea..9ec87a0 100755 (executable)
@@ -1020,8 +1020,7 @@ bool setting_add_listen_node(Eina_List **listened_list,const char *vconf, vconf_
                        ret = FALSE;
                }
        }
-
-       FREE(node);
+       // FREE(node);          /* list node will be freed at the destory function */
        return ret;
 }
 
index e9aaf9f..6577c09 100755 (executable)
@@ -31,6 +31,7 @@
 #include <appsvc.h>
 #include <EWebKit2.h>
 #include <nfc.h>
+#include <signal.h>
 
 extern void setting_update_gl_item(void* data);
 
@@ -38,7 +39,19 @@ extern void setting_update_gl_item(void* data);
 #define SUPPORT_UG_MESSAGE
 
 int g_geometry_x, g_geometry_y, g_geometry_w, g_geometry_h;
-extern int aul_listen_app_dead_signal(int (*func)(int signal, void *data), void *data);
+
+void termination_handler(int signum)
+{
+       SETTING_TRACE_BEGIN;
+       SETTING_TRACE(">>>>>>>>>>> SIGTERM >>>>>>>>>>>>>>> SETTING");
+
+       elm_exit();
+}
+
+
+
+
+
 
 static void __main_motion_sensor_cb( unsigned long long timestamp, void *data)
 {
@@ -724,6 +737,12 @@ static bool setting_main_app_create(void *data)
        //appcore_measure_start();
        setting_main_appdata *ad = data;
 
+       // registering sigterm
+       if (signal(SIGTERM, termination_handler) == SIG_IGN)
+       {
+               signal(SIGTERM, SIG_IGN);
+       }
+
        ad->data_roaming_popup = NULL;
 
        /* create window */