Rev 2296: Flush trace file before doing os._exit. in file:///home/mbp/bzr/Work/osexit/
Martin Pool
mbp at sourcefrog.net
Tue Feb 20 07:16:48 GMT 2007
------------------------------------------------------------
revno: 2296
revision-id: mbp at sourcefrog.net-20070220071627-b21ex5e2rm6dvp7b
parent: pqm at pqm.ubuntu.com-20070218185039-b5d56cdea8765e63
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: osexit
timestamp: Tue 2007-02-20 18:16:27 +1100
message:
Flush trace file before doing os._exit.
modified:
bzr bzr.py-20050313053754-5485f144c7006fa6
=== modified file 'bzr'
--- a/bzr 2007-02-16 06:06:14 +0000
+++ b/bzr 2007-02-20 07:16:27 +0000
@@ -105,6 +105,9 @@
# won't run but we don't use them. Also file buffers won't be flushed,
# but our policy is to always close files from a finally block. -- mbp 20070215
sys.stdout.flush()
+ if bzrlib.trace._trace_file:
+ # this is also _bzr_log
+ bzrlib.trace._trace_file.flush()
# stderr isn't buffered
os._exit(exit_val)
else:
More information about the bazaar-commits
mailing list