mpd/src/unix
Max Kellermann c83ab0dc58 unix/SignalHandlers: shut down if parent process dies in --no-daemon mode
By default, if the parent of a process dies, the process gets SIGHUP
and is supposed to shut down.  This however doesn't work for MPD,
because MPD redefines SIGHUP with a different meaning (like most
daemons do).

To work around this, we configure the kernel to send SIGTERM instead
of SIGHUP.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1706
2023-03-06 13:00:07 +01:00
..
Daemon.cxx lib/fmt/RuntimeError: new library 2022-11-29 14:10:34 +01:00
Daemon.hxx Copyright year 2022 2022-07-14 17:59:35 +02:00
PidFile.hxx Resolve deprecation warnings by replacing use of sprintf with FmtBuffer 2023-02-06 11:56:49 +01:00
SignalHandlers.cxx unix/SignalHandlers: shut down if parent process dies in --no-daemon mode 2023-03-06 13:00:07 +01:00
SignalHandlers.hxx unix/SignalHandlers: shut down if parent process dies in --no-daemon mode 2023-03-06 13:00:07 +01:00