From 86d6d0659a085939c92134316d43a675cacbe883 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 19 Oct 2024 09:49:49 +0000 Subject: [PATCH] jail: Immediately send SIGKILL when the timer has expired Signed-off-by: Michael Tremer --- src/libpakfire/jail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5