From dcb7604e139c25dcc18abcec5278423f9528c66d Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Fri, 21 Jan 2005 20:43:09 +0000
Subject: [PATCH] Don't log as an error when a REQUST_KILL_TASKS RPC returns
 ESRCH, it just means the tasks are already gone.

---
 src/slurmctld/agent.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/slurmctld/agent.c b/src/slurmctld/agent.c
index 9de112fe525..1d302661bf7 100644
--- a/src/slurmctld/agent.c
+++ b/src/slurmctld/agent.c
@@ -656,6 +656,10 @@ static void *_thread_per_node_rpc(void *args)
 		goto cleanup;
 	}
 #endif
+	if ((msg_type == REQUEST_KILL_TASKS) && (rc == ESRCH)) {
+		/* process is already dead, not a real error */
+		rc = SLURM_SUCCESS;
+	}
 
 	switch (rc) {
 	case SLURM_SUCCESS:
-- 
GitLab