From f91ab9261d1cfdc365beb6e66e19f1b412bc7299 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Tue, 10 Sep 2002 23:59:11 +0000
Subject: [PATCH] Fix for linux thread signal handling.

---
 src/slurmd/slurmd.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/slurmd/slurmd.c b/src/slurmd/slurmd.c
index 5e7e9602855..79ef7f607ce 100644
--- a/src/slurmd/slurmd.c
+++ b/src/slurmd/slurmd.c
@@ -168,6 +168,8 @@ void *slurmd_handle_signals(void *args)
 		error("sigaddset error on SIGINT: %m");
 	if (sigaddset(&set, SIGTERM))
 		error("sigaddset error on SIGTERM: %m");
+        if (sigaddset(&set, SIGABRT))
+                error("sigaddset error on SIGABRT: %m");
 
 	if (sigprocmask(SIG_BLOCK, &set, NULL) != 0)
 		fatal("sigprocmask error: %m");
@@ -189,6 +191,9 @@ void *slurmd_handle_signals(void *args)
 		case SIGHUP:	/* kill -1 */
 			info("Reconfigure signal (SIGHUP) received\n");
 			//error_code = read_slurm_conf ( );
+			break;
+		default:
+			error("Invalid signal (%d) received", sig);
 		}
 	}
 }
-- 
GitLab