On Linux, use the SVR4 (now POSIX) signal and locking interfaces instead of the non-standard BSD equivalents.

This commit is contained in:
Lev Kujawski
2021-01-06 12:16:35 -07:00
committed by Jon Trulson
parent 5c801a07a0
commit 0e282a0ad7
2 changed files with 6 additions and 7 deletions

View File

@@ -1161,7 +1161,7 @@ ImmediateExit(
* Turn off SIGTERM so we don't catch one in the middle of shutting
* down
*/
#if !defined(SVR4)
#if !defined(SVR4) && !defined(__linux__)
old = sigblock(sigmask(SIGTERM));
sigblock(sigmask(SIGHUP));
sigblock(sigmask(SIGPIPE));