Skip to content

Commit

Permalink
[shotgun] check exitcode before joining processes
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraFuhrmann committed Feb 8, 2024
1 parent 9010c11 commit b2700b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions viloca/shotgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,11 @@ def main(args):

for p in all_processes:
p.join()
if p.exitcode != 0:
logging.debug("[b2w] A process was killed. Terminating the program.")
exit(1)

logging.debug("[b2w] All processes completed successfully.")

# prepare directories
for sd_name in ['debug', 'sampling', 'freq', 'support',
Expand Down

0 comments on commit b2700b1

Please sign in to comment.