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

Don't change the key signal handlers for slurmctld unless set to SIG_IGN.

This was a problem briefly observed in RedHat 9.
parent 49877274
No related branches found
No related tags found
No related merge requests found
...@@ -424,6 +424,9 @@ static void _default_sigaction(int sig) ...@@ -424,6 +424,9 @@ static void _default_sigaction(int sig)
error("sigaction(%d): %m", sig); error("sigaction(%d): %m", sig);
return; return;
} }
if (act.sa_handler != SIG_IGN)
return;
act.sa_handler = SIG_DFL; act.sa_handler = SIG_DFL;
if (sigaction(sig, &act, NULL)) if (sigaction(sig, &act, NULL))
error("sigaction(%d): %m", sig); error("sigaction(%d): %m", sig);
......
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