From 56c3cdd072bf4f4da0b532b930d68423fdeee853 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Thu, 2 Jun 2005 18:48:43 +0000 Subject: [PATCH] Fix race condition with multiple simultaneous epilogs, can result in slurmd failing with assert failure (reuse of static variable). --- NEWS | 1 + src/slurmd/req.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 03ff86709fd..dbc8ca12bc2 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ documents those changes that are of interest to users and admins. * Changes in SLURM 0.5.0-pre8 ============================= -- BlueGene srun --geometry was not getting propogated properly. + -- Fix race condition with multiple simultaneous epilogs. * Changes in SLURM 0.5.0-pre7 ============================= diff --git a/src/slurmd/req.c b/src/slurmd/req.c index 987d3d645cf..b4ef8bae609 100644 --- a/src/slurmd/req.c +++ b/src/slurmd/req.c @@ -1373,7 +1373,7 @@ static int _run_epilog(uint32_t jobid, uid_t uid, char *bgl_part_id) { int error_code; - static char *my_epilog; + char *my_epilog; slurm_mutex_lock(&conf->config_mutex); my_epilog = xstrdup(conf->epilog); -- GitLab