Add option not to quit in autofill service 27/249327/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 10 Dec 2020 06:58:34 +0000 (15:58 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 10 Dec 2020 06:58:34 +0000 (15:58 +0900)
Change-Id: I5ce7cc8e855009f88a5e5be4e585d57020613aae
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
service_lib/autofill_service.c

index ff1b7cd..22b5116 100644 (file)
@@ -300,6 +300,15 @@ static void __terminate_received_cb(rpc_port_stub_AutofillSvcPort_context_h cont
     if (g_autofill_service_terminate_received_cb)
         g_autofill_service_terminate_received_cb(g_autofill_service_terminate_received_data);
 
+    char *noquit = getenv("AUTOFILL_SERVICE_NO_AUTOEXIT");
+    if (noquit) {
+        if (atoi(noquit) != 0) {
+            LOGI("No quit main loop");
+            return;
+        }
+    }
+
+    LOGI("Quit main loop");
     ecore_main_loop_quit();
 }