summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-09-11 20:50:31 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-09-11 20:50:31 +0200
commitfaebb6992f9a4b8cfe95083c2ad63ff49b608ed0 (patch)
tree5416d6540dde4492ccfbc9011b499e38a9b70852
parentb16c26174fd625aba62ea5716e78b40d64812f3d (diff)
* fix missing SetExecClose() call when the status-fd is used
-rw-r--r--apt-pkg/packagemanager.h2
-rw-r--r--debian/changelog1
2 files changed, 3 insertions, 0 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 bf5afb3b9..69721ebc8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,7 @@ apt (0.7.7) UNRELEASED; 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
[ Ian Jackson ]
* dpkg-triggers: Deal properly with new package states.