When the hydra loader is terminated, the parent process ID of the
application that is launched using the loader process is created by
the hydra loader is changed to the launchpad-process-pool.
Currently, the hydra loader is terminated, the application is always running
as zombie process. After this patch is applied, even though the hydra load
is terminated, the launchpad-process-pool gets the SIGCHLD signal when
the application is terminated.
Change-Id: I5d1d05e25c6a0803e925c857106367cc74382631
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
GMainLoop *mainloop = NULL;
_print_hwc_log("%s(%d): START", __FUNCTION__, __LINE__);
+ prctl(PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0);
+
mainloop = g_main_loop_new(NULL, FALSE);
if (!mainloop) {
_E("Failed to create glib main loop");