Skip to content

Commit

Permalink
Wait for subprocess to prevent ResourceWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
Byvire committed Apr 13, 2018
1 parent 36120f2 commit 14580d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pygraphviz/agraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,7 @@ def _run_prog(self, prog='nop', args=''):

for t in threads:
t.join()
p.wait()

if not data:
raise IOError(b"".join(errors).decode(self.encoding))
Expand Down

0 comments on commit 14580d8

Please sign in to comment.