Skip to content
Snippets Groups Projects
Commit 08829f29 authored by Tim Wickberg's avatar Tim Wickberg Committed by Morris Jette
Browse files

Fix qstat wrapper script to return 153 when no results found.

Except return 0 if using the -u argument. Bug introduced by addb3574,
fix bug 2330 differently while solving bug 2807.
parent 29ff6470
No related branches found
No related tags found
No related merge requests found
...@@ -20240,9 +20240,10 @@ char *malloc (); ...@@ -20240,9 +20240,10 @@ char *malloc ();
int int
main () main ()
{ {
return ! malloc (0); char *a = malloc(0);
; int b = !a;
return 0; free(a);
return b;
} }
_ACEOF _ACEOF
if ac_fn_c_try_run "$LINENO"; then : if ac_fn_c_try_run "$LINENO"; then :
......
...@@ -227,8 +227,13 @@ if(defined($queueList)) { ...@@ -227,8 +227,13 @@ if(defined($queueList)) {
print_job_brief($job, $line); print_job_brief($job, $line);
$line++; $line++;
} }
$rc = 0;
}
# return 0 even if no records printed when using -u flag
if (@userIds) {
$rc = 0;
} }
$rc = 0;
} }
# Exit with status code # Exit with status code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment