diff options
author | Thomas White <taw@physics.org> | 2020-09-01 16:28:56 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-01 16:29:17 +0200 |
commit | 5bd6c58c82eba7109cb6365440aa43f4d577ed67 (patch) | |
tree | e6379855f72a346526a3b0422fb29a3f7298d8c3 /src/gui_backend_slurm.c | |
parent | 045138c1e2c086864dbafe5d4dd9bd88732b88e3 (diff) |
SLURM: Don't forget to close the stderr files
Also, don't print the entire contents every time. We'll have to find
another way to track warning messages.
Diffstat (limited to 'src/gui_backend_slurm.c')
-rw-r--r-- | src/gui_backend_slurm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 870b4d5c..f51af9e9 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -75,12 +75,12 @@ static int read_number_processed(const char *filename) sscanf(line, "Final: %i images processed", &n_proc); } else if ( strstr(line, " images processed, ") != NULL ) { sscanf(line, "%i ", &n_proc); - } else { - STATUS("%s\n", line); } } while ( 1 ); + fclose(fh); + return n_proc; } |