X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b16c26174fd625aba62ea5716e78b40d64812f3d..faebb6992f9a4b8cfe95083c2ad63ff49b608ed0:/apt-pkg/packagemanager.h 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;