595b0557f3
During my testing in OpenShift I've noticed that conmon leaves some zombies processes. The reason is that we are using PR_SET_CHILD_SUBREAPER in conmon and runC forks a new process (runc init) each time we start a container. Using g_child_watch_add only on the main runc process and on the container process is not enough as we do not cleanup any other zombie process. Since glib doesn't allow to catch SIGCHLD and to better integrate in the existing code, catch it with signal(2) then raise a SIGUSR1 that glib handles. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> |
||
---|---|---|
.. | ||
cmsg.c | ||
cmsg.h | ||
conmon.c | ||
Makefile |