diff --git a/src/slurmctld/step_mgr.c b/src/slurmctld/step_mgr.c index 9a54b05d4ed255454d0a4e83969e6c946891a22e..1bcfd51773495db7aebb1d7d9455d41bb8c8b970 100644 --- a/src/slurmctld/step_mgr.c +++ b/src/slurmctld/step_mgr.c @@ -369,10 +369,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...) */ @@ -383,7 +381,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) {