From a6151e5d427828b8a7972bcc045dfebba801e21e Mon Sep 17 00:00:00 2001 From: jette <jette@schedmd.com> Date: Wed, 9 Jan 2013 16:33:56 -0800 Subject: [PATCH] Fix recently introduced bug that prevented scontrol from working with command line input --- src/scontrol/scontrol.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/scontrol/scontrol.c b/src/scontrol/scontrol.c index ee080b62843..f4f106df76a 100644 --- a/src/scontrol/scontrol.c +++ b/src/scontrol/scontrol.c @@ -217,16 +217,15 @@ main (int argc, char *argv[]) error_code = _get_command (&input_field_count, input_fields); while (error_code == SLURM_SUCCESS) { - if (exit_flag) { /* EOF */ - putchar('\n'); - break; - } - error_code = _process_command (input_field_count, input_fields); if (error_code || exit_flag) break; error_code = _get_command (&input_field_count, input_fields); + if (exit_flag) { /* EOF */ + putchar('\n'); + break; + } } if (clusters) list_destroy(clusters); -- GitLab