Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 935050 - Manually flush native command's stdout and stderr, multi…
Browse files Browse the repository at this point in the history
…processing exits via os._exit. r=gps
  • Loading branch information
zseil committed Nov 8, 2013
1 parent d386b4f commit 85cf9f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/pymake/pymake/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ def run(self):
finally:
os.environ.clear()
os.environ.update(oldenv)
# multiprocessing exits via os._exit, make sure that all output
# from command gets written out before that happens.
sys.stdout.flush()
sys.stderr.flush()
return 0

def job_runner(job):
Expand Down

0 comments on commit 85cf9f4

Please sign in to comment.