From e3900972ab861ed80297bf8e88ca73be50a14558 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Thu, 16 Feb 2012 09:55:36 -0800
Subject: [PATCH] BGQ - fixed issue where srun didn't forward a SIGKILL to the
 runjob process when job is killed by scancel.

---
 src/srun/srun.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/srun/srun.c b/src/srun/srun.c
index ab1beb109aa..fc59fa31bca 100644
--- a/src/srun/srun.c
+++ b/src/srun/srun.c
@@ -1107,6 +1107,7 @@ _handle_msg(slurm_msg_t *msg)
 	case SRUN_JOB_COMPLETE:
 		debug("received job step complete message");
 		slurm_free_srun_job_complete_msg(msg->data);
+		runjob_signal(SIGKILL);
 		break;
 	case SRUN_USER_MSG:
 		um = msg->data;
-- 
GitLab