From 9a2885a7933e06e17d908e027399e8c2978956cb Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" <morrone2@llnl.gov> Date: Sat, 16 Jul 2005 00:37:28 +0000 Subject: [PATCH] Fix unload_window return codes --- src/plugins/switch/federation/federation.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/switch/federation/federation.c b/src/plugins/switch/federation/federation.c index ace7c15a797..4065ce4a123 100644 --- a/src/plugins/switch/federation/federation.c +++ b/src/plugins/switch/federation/federation.c @@ -2120,19 +2120,19 @@ _unload_window(char *adapter, unsigned short job_key, unsigned short window_id, { int i; int err; - int rc = SLURM_SUCCESS; for (i = 0; i < retry; i++) { err = ntbl_unload_window(NTBL_VERSION, adapter, job_key, window_id); - if (err == NTBL_SUCCESS) { - debug3("_unload_window succeeded"); - break; - } + if (err == NTBL_SUCCESS) + return SLURM_SUCCESS; + error("Unable to unload window %hu adapter %s: %s\n", window_id, adapter, _lookup_fed_status_tab(err)); sleep(1); } + + return SLURM_FAILURE; } -- GitLab