diff --git a/src/slurmctld/step_mgr.c b/src/slurmctld/step_mgr.c index 3a648ff26d1234dec6e8c60b70c83032e94e3f5b..fa31ddbbf008402120a818c9cc1f164d6f3e0b9b 100644 --- a/src/slurmctld/step_mgr.c +++ b/src/slurmctld/step_mgr.c @@ -344,10 +344,8 @@ int job_step_signal(uint32_t job_id, uint32_t step_id, struct step_record *step_ptr, step_rec; int rc = SLURM_SUCCESS; static bool notify_slurmd = true; -#if defined HAVE_BG_FILES && !defined HAVE_BG_L_P - static int notify_srun = 1; -#else static int notify_srun = -1; + if (notify_srun == -1) { char *launch_type = slurm_get_launch_type(); /* do this for all but slurm (poe, aprun, etc...) */ @@ -358,7 +356,6 @@ int job_step_signal(uint32_t job_id, uint32_t step_id, notify_srun = 0; xfree(launch_type); } -#endif job_ptr = find_job_record(job_id); if (job_ptr == NULL) {