]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/packagemanager.h
* fix missing SetExecClose() call when the status-fd is used
[apt.git] / apt-pkg / packagemanager.h
index 48f53576cf981517abd93f20be92a01e9ad686cf..adcbec3d0f467e748eabd89c5d94b9c9821d6bf8 100644 (file)
@@ -23,9 +23,6 @@
 #ifndef PKGLIB_PACKAGEMANAGER_H
 #define PKGLIB_PACKAGEMANAGER_H
 
-#ifdef __GNUG__
-#pragma interface "apt-pkg/packagemanager.h"
-#endif
 
 #include <string>
 #include <iostream>
@@ -94,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;