mpd/src/unix
Max Kellermann a0f6932ebe 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-05-21 20:40:47 +02:00
..
Daemon.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Daemon.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
PidFile.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
SignalHandlers.cxx unix/SignalHandlers: shut down if parent process dies in --no-daemon mode 2023-05-21 20:40:47 +02:00
SignalHandlers.hxx unix/SignalHandlers: shut down if parent process dies in --no-daemon mode 2023-05-21 20:40:47 +02:00