]> git.proxmox.com Git - mirror_lxc.git/commit
lxc-init finishes the remaining processes with SIGKILL
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 13 Jul 2010 12:51:45 +0000 (14:51 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 13 Jul 2010 12:51:45 +0000 (14:51 +0200)
commit6f0a42008dab87e1c97bc71319c793315f87a328
treee5c6ac11f14bad971b3954c03535641e8f208a84
parent6fd1668e7f96c15b8688a0fa955e2c10bbc4785d
lxc-init finishes the remaining processes with SIGKILL

If lxc-init receives a SIGALRM, a timeout, it kills all the processes
of the container with SIGKILL. That will prevent the container to be
stuck when one process ignore the SIGTERM signal.

Each time a process exits, the timeout is resetted.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc_init.c