Skip to content
Snippets Groups Projects
Commit 9b1399cf authored by Moe Jette's avatar Moe Jette
Browse files

Block SIGPIPE throughout slurmctld.

parent 74d08e4c
No related branches found
No related tags found
No related merge requests found
...@@ -186,11 +186,13 @@ int main(int argc, char *argv[]) ...@@ -186,11 +186,13 @@ int main(int argc, char *argv[])
* SLURM_CRED_OPT_EXPIRY_WINDOW, CRED_LIFE); * SLURM_CRED_OPT_EXPIRY_WINDOW, CRED_LIFE);
*/ */
/* Block SIGALRM everyone not explicitly enabled */ /* Block SIGALRM and SIGPIPE for everyone not explicitly enabled */
if (sigemptyset(&set)) if (sigemptyset(&set))
error("sigemptyset error: %m"); error("sigemptyset error: %m");
if (sigaddset(&set, SIGALRM)) if (sigaddset(&set, SIGALRM))
error("sigaddset error on SIGALRM: %m"); error("sigaddset error on SIGALRM: %m");
if (sigaddset(&set, SIGPIPE))
error("sigaddset error on SIGPIPE: %m");
if (sigprocmask(SIG_BLOCK, &set, NULL) != 0) if (sigprocmask(SIG_BLOCK, &set, NULL) != 0)
fatal("sigprocmask error: %m"); fatal("sigprocmask error: %m");
......
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