cri-o/conmon
Giuseppe Scrivano 595b0557f3 conmon: use waitpid to wait for terminated processes
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>
2017-07-24 14:50:50 +02:00
..
cmsg.c conmon: implement logging to logPath 2017-04-05 02:45:57 +10:00
cmsg.h conmon: implement logging to logPath 2017-04-05 02:45:57 +10:00
conmon.c conmon: use waitpid to wait for terminated processes 2017-07-24 14:50:50 +02:00
Makefile Remove json-glib in the remaining places 2017-06-02 16:18:27 +02:00