diff --git a/NEWS b/NEWS index 0d1920b0fd515371f9119475e21285de6e82610b..59ec01ac9cb0b78263bd3bf9ec102f7db5361bc7 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,8 @@ documents those changes that are of interest to users and admins. current version of slurm installed on system when building against the api. -- Patch from Matthieu Hautreux that adds an entry into the error file when a job or step receives a TERM or KILL signal. + -- Make it so env var SLURM_SRUN_COMM_HOST is overwritten if already in + existance in the slurmd. * Changes in SLURM 2.1.0-pre8 ============================= diff --git a/src/slurmd/slurmd/req.c b/src/slurmd/slurmd/req.c index 651326e9cc75169c5a648ce76b0fad6ac0c97f49..7d0d4ac132857ca637e81e51da8f5840872c7428 100644 --- a/src/slurmd/slurmd/req.c +++ b/src/slurmd/slurmd/req.c @@ -840,7 +840,10 @@ _rpc_launch_tasks(slurm_msg_t *msg) slurm_get_ip_str(cli, &port, host, sizeof(host)); info("launch task %u.%u request from %u.%u@%s (port %hu)", req->job_id, req->job_step_id, req->uid, req->gid, host, port); - env_array_append(&req->env, "SLURM_SRUN_COMM_HOST", host); + + /* this could be set previously and needs to be overwritten by + this call for messages to work correctly for the new call */ + env_array_overwrite(&req->env, "SLURM_SRUN_COMM_HOST", host); req->envc = envcount(req->env); first_job_run = !slurm_cred_jobid_cached(conf->vctx, req->job_id);