]> git.ipfire.org Git - pakfire.git/commitdiff
jail: Immediately send SIGKILL when the timer has expired
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Oct 2024 09:49:49 +0000 (09:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Oct 2024 09:49:49 +0000 (09:49 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/jail.c

index dc3e333d9f5d3e89c4536d6c7bb8575a11bd0e05..cb144a02f438956fbb6a11be478da41895782b54 100644 (file)
@@ -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;
 }