[merge] use os._exit
Martin Pool
mbp at canonical.com
Thu Feb 15 10:01:22 GMT 2007
This changes bzr to exit through os._exit when it's done. This function
differs from sys.exit in that it does not finalize or gc any objects
that still exist. That has two benefits:
It suppresses the intermittent failure of the smartserver
tests that I wrote about yesterday -- python never goes into
the terrible state of modules disappearing while in use
By avoiding gc of things that are about to be destroyed we save some
time at shutdown -- about 50ms in my test, or 14% of the time to do bzr
status in a bzr tree.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20070215-osexit.diff
Type: text/x-diff
Size: 2305 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070215/9f4a7072/attachment.bin
More information about the bazaar
mailing list