diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_backend_slurm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 33e35959..586f1d0f 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -74,7 +74,10 @@ static void cancel_task(void *job_priv) struct slurm_job *job = job_priv; for ( i=0; i<job->n_blocks; i++) { STATUS("Stopping SLURM job %i\n", job->job_ids[i]); - slurm_kill_job(job->job_ids[i], SIGINT, 0); + if ( slurm_kill_job(job->job_ids[i], SIGINT, 0) ) { + ERROR("Couldn't stop job: %s\n", + slurm_strerror(slurm_get_errno())); + } } } |