Skip to content

Commit 2aa0a70

Browse files
committed
Ensure all sub-processes are joined before killing them.
Without waiting for them to run their handlers, and killing them right away, some may not have the "time" to write(2) their prints. It typically happen on GH workflows.
1 parent f6a736d commit 2aa0a70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sphinxlint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,8 @@ def main(argv=None):
560560
else:
561561
with multiprocessing.Pool() as pool:
562562
results = pool.map(configured_check_file, todo)
563+
pool.close()
564+
pool.join()
563565

564566
count = reduce(Counter.__add__, results)
565567

0 commit comments

Comments
 (0)