Skip to content
Snippets Groups Projects
Commit 85ba41aa authored by Mark Grondona's avatar Mark Grondona
Browse files

o block signals waited for by sigwait()

parent b484bbc1
No related branches found
No related tags found
No related merge requests found
...@@ -169,6 +169,9 @@ void *slurmd_handle_signals(void *args) ...@@ -169,6 +169,9 @@ void *slurmd_handle_signals(void *args)
if (sigaddset(&set, SIGTERM)) if (sigaddset(&set, SIGTERM))
error("sigaddset errno %d on SIGTERM", errno); error("sigaddset errno %d on SIGTERM", errno);
if (sigprocmask(SIG_BLOCK, &set, NULL) != 0)
fatal("sigprocmask: %m");
while (1) { while (1) {
if ((error_code = sigwait(&set, &sig))) if ((error_code = sigwait(&set, &sig)))
error("sigwait errno %d\n", error_code); error("sigwait errno %d\n", error_code);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment