diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/tools/process-tools.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/tools/process-tools.cc b/src/main/tools/process-tools.cc index ae3419a33a..7dd623fa76 100644 --- a/src/main/tools/process-tools.cc +++ b/src/main/tools/process-tools.cc @@ -108,8 +108,10 @@ void InstallSignalHandler(int signum, void (*handler)(int)) { DIE("sigfillset"); } } + // sigaction may fail for certain reserved signals. Ignore failure in this + // case, but report it in debug mode, just in case. if (sigaction(signum, &sa, nullptr) < 0) { - DIE("sigaction"); + PRINT_DEBUG("sigaction(%d, &sa, nullptr) failed", signum); } } |