At http://bazaar.launchpad.net/~jameinel/tarmac/win32
------------------------------------------------------------
revno: 125
revision-id: [email protected]
parent: [email protected]
committer: John Arbash Meinel <[email protected]>
branch nick: win32
timestamp: Thu 2009-07-09 11:28:08 -0500
message:
Call sys.exitfunc() before exiting.
For some reason, atexit() does bad things on win32.
My best guess is that gc starts collecting objects *before* running the
atexit hooks.
Which causes some of the atexit functionality to die a horrible death.
(My primary guess is something with paramiko.)
Anyway, forcibly injecting sys.exitfunc() before exiting the process
means that the process exits cleanly.
=== modified file 'tarmac-lander'
--- a/tarmac-lander 2009-05-12 02:10:05 +0000
+++ b/tarmac-lander 2009-07-09 16:28:08 +0000
@@ -1,8 +1,10 @@
#!/usr/bin/env python
# Copyright 2009 Paul Hummer - See LICENSE
+import sys
from tarmac.bin import TarmacLander
if __name__ == '__main__':
script = TarmacLander()
script.main()
-
+ # Run the exit functions
+ sys.exitfunc()
--
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits