summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-09-11 20:55:44 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-09-11 20:55:44 +0200
commitdde60c5696f6779ea48febdac315083fb50e3075 (patch)
tree66d44cfa939ef90f03dccc6378213b7df47a14d5
parente43312cf4e19bd3eab15a4f43a586e2ab28c9763 (diff)
parentfaebb6992f9a4b8cfe95083c2ad63ff49b608ed0 (diff)
* fix missing SetExecClose() call when the status-fd is used
(LP: #136767)
-rw-r--r--apt-pkg/packagemanager.h2
-rw-r--r--debian/changelog4
2 files changed, 5 insertions, 1 deletions
diff --git a/apt-pkg/packagemanager.h b/apt-pkg/packagemanager.h
index 53600fb61..adcbec3d0 100644
--- a/apt-pkg/packagemanager.h
+++ b/apt-pkg/packagemanager.h
@@ -91,6 +91,8 @@ class pkgPackageManager : protected pkgCache::Namespace
// stuff that needs to be done after the fork
OrderResult DoInstallPostFork(int statusFd=-1) {
+ if(statusFd > 0)
+ SetCloseExec(statusFd, true);
bool goResult = Go(statusFd);
if(goResult == false)
return Failed;
diff --git a/debian/changelog b/debian/changelog
index d60a61d27..01b9dbae0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,10 @@ apt (0.7.6ubuntu9) gutsy; urgency=low
- increase MaxPipeDepth for the internal worker<->method
communication to 1000 for the debtorrent backend
* make apt build with g++ 4.3
+ * fix missing SetExecClose() call when the status-fd is used
+ (LP: #136767)
- -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 10 Sep 2007 14:57:53 +0200
+ -- Michael Vogt <michael.vogt@ubuntu.com> Tue, 11 Sep 2007 20:55:00 +0200
apt (0.7.6ubuntu8) gutsy; urgency=low