If the main loop is stopped forcedly, the loader_terminate_cb callback
function must not be called.
Change-Id: Idb1e253e4be5a46fa1b954221f0d083bce7761a3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
static int __loader_id;
static pid_t __candidate_pid = -1;
static struct sigaction __prev_sigchld;
+static bool __loop_quit;
static void __at_exit_to_release_bundle(void)
{
if (ret >= 0) {
__loader_adapter->loop_quit(__loader_user_data);
_D("[candidate] ecore main loop quit");
+ __loop_quit = true;
}
}
_D("[candidate] ecore main loop begin");
__loader_adapter->loop_begin(__loader_user_data);
+ if (!__loop_quit) {
+ _E("[candidate] loop was stopped forcedly");
+ return -1;
+ }
+
return __after_loop();
}
}
return 0;
-}
\ No newline at end of file
+}