* fix missing SetExecClose() call when the status-fd is used
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 11 Sep 2007 18:50:31 +0000 (20:50 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 11 Sep 2007 18:50:31 +0000 (20:50 +0200)
apt-pkg/packagemanager.h
debian/changelog

index 53600fb..adcbec3 100644 (file)
@@ -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;
index bf5afb3..69721eb 100644 (file)
@@ -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.