e_main: add missing ecore_main_loop_quit when receiving signal 74/65574/1 accepted/tizen/common/20160411.130938 accepted/tizen/ivi/20160412.010107 accepted/tizen/mobile/20160412.010053 accepted/tizen/tv/20160412.005952 accepted/tizen/wearable/20160412.010014 submit/tizen/20160411.114036
authorGwanglim Lee <gl77.lee@samsung.com>
Mon, 11 Apr 2016 11:05:27 +0000 (20:05 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 11 Apr 2016 11:05:27 +0000 (20:05 +0900)
Change-Id: I19cd6aba722eb906ed28d634e1c9c0c25e676f12

src/bin/e_main.c

index 614d946..91acf1e 100644 (file)
@@ -888,14 +888,15 @@ static Eina_Bool
 _e_main_cb_signal_exit(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev EINA_UNUSED)
 {
    /* called on ctrl-c, kill (pid) (also SIGINT, SIGTERM and SIGQIT) */
-   //e_sys_action_do(E_SYS_EXIT, NULL);
+   ecore_main_loop_quit();
    return ECORE_CALLBACK_RENEW;
 }
 
 static Eina_Bool
 _e_main_cb_signal_hup(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev EINA_UNUSED)
 {
-   //e_sys_action_do(E_SYS_RESTART, NULL);
+   restart = 1;
+   ecore_main_loop_quit();
    return ECORE_CALLBACK_RENEW;
 }