From: Michael Tremer Date: Sat, 19 Oct 2024 09:49:49 +0000 (+0000) Subject: jail: Immediately send SIGKILL when the timer has expired X-Git-Tag: 0.9.30~993 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86d6d0659a085939c92134316d43a675cacbe883;p=pakfire.git jail: Immediately send SIGKILL when the timer has expired Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/jail.c b/src/libpakfire/jail.c index dc3e333d9..cb144a02f 100644 --- a/src/libpakfire/jail.c +++ b/src/libpakfire/jail.c @@ -1004,10 +1004,10 @@ static int pakfire_jail_timer(sd_event_source* s, uint64_t usec, void* data) { CTX_DEBUG(jail->ctx, "Timer has fired...\n"); - // Send SIGTERM to the process - r = pidfd_send_signal(ctx->pidfd, SIGTERM, NULL, 0); + // Send SIGKILL to the process + r = pidfd_send_signal(ctx->pidfd, SIGKILL, NULL, 0); if (r) - CTX_ERROR(jail->ctx, "Could not send SIGTERM to the process: %m\n"); + CTX_ERROR(jail->ctx, "Could not send SIGKILL to the process: %m\n"); return r; }