GNU bug report logs -
#77753
[PATCH] daemon: Catch SIGINT, SIGTERM, and SIGHUP for proper termination.
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Fri, 11 Apr 2025 21:38:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 77753-done <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> gnu.org> writes:
> Previously the daemon would not install handlers for these signals. It
> would thus terminate abruptly when receiving them, without properly
> closing the SQLite database.
>
> Consequently, the database’s WAL file, which is normally deleted by the
> last client closing the database (via ‘sqlite3_close’), would not be
> deleted when the guix-daemon process is terminated; instead, it would
> persist and possibly keep growing beyond reason.
>
> This patch fixes that.
>
> * nix/nix-daemon/nix-daemon.cc (handleSignal, setTerminationSignalHandler):
> New functions.
> (processConnection): Call it.
>
> Reported-by: Christopher Baines <mail <at> cbaines.net>
> Change-Id: I07e510a1242e92b6a629d60eb840e029c0f921be
Pushed as dd947985522886f9de6fdfdde3f0601e42219da5.
This bug report was last modified 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.