diff options
author | Thomas White <taw@physics.org> | 2019-01-03 10:54:40 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-01-03 10:56:41 +0100 |
commit | b2286aca7040abff47afe07c12d741bb91441f63 (patch) | |
tree | 7d68482f23c257411821d1e37f631940a3c64b75 /src/indexamajig.c | |
parent | 1ccb8c35a27d1e714b8c3caacc1a68307ff12ada (diff) |
indexamajig: Return non-zero exit status if no patterns were processed
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index f9b2c94d..f452b033 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -1288,8 +1288,8 @@ int main(int argc, char *argv[]) gsl_set_error_handler_off(); - create_sandbox(&iargs, n_proc, prefix, config_basename, fh, - st, tmpdir, serial_start); + r = create_sandbox(&iargs, n_proc, prefix, config_basename, fh, + st, tmpdir, serial_start); free_imagefile_field_list(iargs.copyme); cell_free(iargs.cell); @@ -1302,5 +1302,9 @@ int main(int argc, char *argv[]) close_stream(st); cleanup_indexing(iargs.ipriv); - return 0; + if ( r ) { + return 0; + } else { + return 1; /* No patterns processed */ + } } |