From c16f7ef52793f5fa6369c149f8a9f1fb5a862a6b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 18 Apr 2006 17:16:06 +0200 Subject: * DistUpgrade/DistUpgradeViewGtk.py: - apply evil hack to work-around bug in the atexit functionality --- DistUpgrade/DistUpgradeViewGtk.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DistUpgrade/DistUpgradeViewGtk.py') diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index d8c55763..3236ba14 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -196,6 +196,10 @@ class GtkInstallProgressAdapter(InstallProgress): def fork(self): pid = self.term.forkpty(envv=self.env) + if pid == 0: + # HACK to work around bug in python/vte and unregister the logging + # atexit func in the child + sys.exitfunc = lambda: True return pid def statusChange(self, pkg, percent, status): -- cgit v1.2.3