#include <appsvc.h>
#include <EWebKit2.h>
#include <nfc.h>
+#include <signal.h>
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)
{
//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 */