mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 06:25:30 -04:00
Closing the stdout file descriptor when finished (#3864)
This commit is contained in:
parent
1dc4aa9882
commit
ba94c58230
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ def _run(args, output, cwd):
|
|||
# If OpenMC is finished, break loop
|
||||
line = p.stdout.readline()
|
||||
if not line and p.poll() is not None:
|
||||
p.stdout.close()
|
||||
break
|
||||
|
||||
lines.append(line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue