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

use segemptyset() on signal structure before download to avoid valgrind errors.

parent cec07b18
No related branches found
No related tags found
No related merge requests found
...@@ -462,6 +462,7 @@ _decode_cred(char *m, slurm_auth_credential_t *c) ...@@ -462,6 +462,7 @@ _decode_cred(char *m, slurm_auth_credential_t *c)
* Block all signals to allow munge_decode() to proceed * Block all signals to allow munge_decode() to proceed
* uninterrupted. (Testing for gnats slurm/223) * uninterrupted. (Testing for gnats slurm/223)
*/ */
sigemptyset(&oset); /* for clean valgrind */
sigfillset(&set); sigfillset(&set);
sigdelset(&set, SIGABRT); sigdelset(&set, SIGABRT);
sigdelset(&set, SIGSEGV); sigdelset(&set, SIGSEGV);
......
...@@ -76,6 +76,7 @@ allocate_nodes(void) ...@@ -76,6 +76,7 @@ allocate_nodes(void)
ointf = xsignal(SIGINT, _intr_handler); ointf = xsignal(SIGINT, _intr_handler);
otermf = xsignal(SIGTERM, _intr_handler); otermf = xsignal(SIGTERM, _intr_handler);
sigemptyset(&oset); /* for clean valgrind */
xsignal_save_mask(&oset); xsignal_save_mask(&oset);
xsignal_unblock(sigarray); xsignal_unblock(sigarray);
......
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