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
This commit is contained in:
Max Kellermann
2023-03-06 12:53:19 +01:00
parent d9952b9054
commit c83ab0dc58
4 changed files with 22 additions and 5 deletions

2
NEWS
View File

@@ -29,6 +29,8 @@ ver 0.24 (not yet released)
* switch to C++20
- GCC 10 or clang 11 (or newer) recommended
* static partition configuration
* Linux
- shut down if parent process dies in --no-daemon mode
* Windows
- build with libsamplerate
- remove JACK DLL support