summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebastian.heinlein@web.de>2006-04-20 22:19:26 +0200
committerSebastian Heinlein <sebastian.heinlein@web.de>2006-04-20 22:19:26 +0200
commite24f0af7b8efd56248a16beccda41399e4a361b3 (patch)
treee2025b906fd88b9e1c5f284e82962f5258f61da1 /DistUpgrade/DistUpgradeViewGtk.py
parentf8724e0b2329dbd497419123e38bb36d7bbeed71 (diff)
parent3cb73fd8b75b2ef4de7a9bd25fb5d41950078550 (diff)
downloadpython-apt-e24f0af7b8efd56248a16beccda41399e4a361b3.tar.gz
merged from mvo
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
-rw-r--r--DistUpgrade/DistUpgradeViewGtk.py4
1 files changed, 4 insertions, 0 deletions
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):