Do not check candidate process state 95/284495/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 18 Nov 2022 05:45:11 +0000 (05:45 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 18 Nov 2022 05:45:11 +0000 (05:45 +0000)
When starting launchpad, getting the vconf value can be failed.
Even if getting the vconf value is failed, the loader process should be
executed that has a onboot timeout feature in the configuration file.

Change-Id: Ie6d22f18aa711a325b445102bff16914f6ed4727
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/src/launchpad.c

index 1e88226855ff4dd9a35423cc809046572026d958..058d75c2d0f9d28d6c8f81de8cb8e2b03ccbdf39 100644 (file)
@@ -1887,6 +1887,9 @@ static int __add_idle_checker(int detection_method, GList *cur)
 
        while (iter) {
                cpc = (candidate_process_context_t *)iter->data;
+               if (!cpc->touched && cpc->on_boot && cpc->on_boot_timeout > 0)
+                       __add_on_boot_timer(cpc);
+
                if (cpc->state != CANDIDATE_PROCESS_STATE_RUNNING) {
                        iter = g_list_next(iter);
                        continue;
@@ -1902,9 +1905,6 @@ static int __add_idle_checker(int detection_method, GList *cur)
                        continue;
                }
 
-               if (!cpc->touched && cpc->on_boot && cpc->on_boot_timeout > 0)
-                       __add_on_boot_timer(cpc);
-
                if (cpc->app_check && !cpc->app_exists) {
                        iter = g_list_next(iter);
                        continue;