jail: make sure jailed process is terminated
authorDaniel Golle <daniel@makrotopia.org>
Fri, 10 Dec 2021 13:48:59 +0000 (13:48 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 11 Dec 2021 03:12:08 +0000 (03:12 +0000)
commitbb95fe8df7115ab57792369c768927eafc042161
tree70b49e4ea480c94cc298fe2a8517972808b63bc2
parent01ac2c4500cb0c7934640e6d2e5f99b08483bdf4
jail: make sure jailed process is terminated

Don't ever send SIGKILL to ujail, as that will kill ujail but not the
jailed process.
Instead, let ujail send SIGKILL in case of SIGTERM not succeeding after
the term_timeout which procd now passes down to ujail.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c
service/instance.c