From e671440114f46b0c6a961cd995a0b7d8bfb3f2ba Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Sun, 24 Aug 2008 21:39:38 +0200 Subject: Revert the os._exit call in the child of the progress --- apt/progress.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt/progress.py') diff --git a/apt/progress.py b/apt/progress.py index 2ef100a8..09a3fb06 100644 --- a/apt/progress.py +++ b/apt/progress.py @@ -214,7 +214,7 @@ class InstallProgress(DumbInstallProgress): if pid == 0: # child res = pm.DoInstall(self.writefd) - os.exit(res) + os._exit(res) self.child_pid = pid res = self.waitChild() return res @@ -249,7 +249,7 @@ class DpkgInstallProgress(InstallProgress): # child res = os.system("/usr/bin/dpkg --status-fd %s -i %s" % \ (self.writefd, self.debfile)) - os.exit(res) + os._exit(os.WEXITSTATUS(res)) self.child_pid = pid res = self.waitChild() return res -- cgit v1.2.3