[cmd] Close and join process pool
The process pool needs to be closed and joined otherwise the main wait()
function will wait for infinity in case there is no files to analyze in
a CTU analysis.
@@ -760,6 +760,8 @@ def start_workers(actions_map, actions, context, analyzer_config_map,
finally:
pool.join()
else:
+ pool.close()
+ pool.join()
LOG.info("----==== Summary ====----")
for skp in skipped_actions:
