From 37655f495280e45f3c22c72616b13aeb33f6ef35 Mon Sep 17 00:00:00 2001 From: Mark Grondona <mgrondona@llnl.gov> Date: Sat, 1 Mar 2003 00:16:48 +0000 Subject: [PATCH] o include SLURM_JOBID in set of environment variables set for jobs --- src/slurmd/smgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slurmd/smgr.c b/src/slurmd/smgr.c index 9eba4c5d4ef..8db6bf70e38 100644 --- a/src/slurmd/smgr.c +++ b/src/slurmd/smgr.c @@ -342,6 +342,8 @@ _setup_env(slurmd_job_t *job, int taskid) int cnt = (int) job->envc; task_info_t *t = job->task[taskid]; + if (setenvpf(&job->env, &cnt, "SLURM_JOBID=%d", job->jobid) < 0) + return -1; if (setenvpf(&job->env, &cnt, "SLURM_NODEID=%d", job->nodeid) < 0) return -1; if (setenvpf(&job->env, &cnt, "SLURM_PROCID=%d", t->gid ) < 0) -- GitLab