From 2e6bf34b0baf0952e0f4f0fe0ba1d70649425ced Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 8 Dec 2003 17:58:22 +0000 Subject: [PATCH] Remove logic to block signals before call to munge_decode(). This logic was added temporarily for testing gnats slurm/223. --- src/plugins/auth/auth_munge.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/plugins/auth/auth_munge.c b/src/plugins/auth/auth_munge.c index bff4aa1236b..030af6296a4 100644 --- a/src/plugins/auth/auth_munge.c +++ b/src/plugins/auth/auth_munge.c @@ -441,7 +441,6 @@ static int _decode_cred(char *m, slurm_auth_credential_t *c) { int retry = 2; - sigset_t set, oset; munge_err_t e; munge_ctx_t ctx; @@ -458,18 +457,6 @@ _decode_cred(char *m, slurm_auth_credential_t *c) return SLURM_ERROR; } - /* - * Block all signals to allow munge_decode() to proceed - * uninterrupted. (Testing for gnats slurm/223) - */ - sigemptyset(&oset); /* for clean valgrind */ - sigfillset(&set); - sigdelset(&set, SIGABRT); - sigdelset(&set, SIGSEGV); - sigdelset(&set, SIGILL); - if (pthread_sigmask(SIG_SETMASK, &set, &oset) < 0) - error("pthread_sigmask: %m"); - again: if ((e = munge_decode(m, ctx, &c->buf, &c->len, &c->uid, &c->gid))) { error ("Munge decode failed: %s %s", @@ -491,9 +478,6 @@ _decode_cred(char *m, slurm_auth_credential_t *c) c->verified = true; done: - if (pthread_sigmask(SIG_SETMASK, &oset, NULL) < 0) - error("pthread_sigmask: %m"); - munge_ctx_destroy(ctx); return e ? SLURM_ERROR : SLURM_SUCCESS; -- GitLab