From 1d6386f35066c1cc3c053f94fccf379d86075eac Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 14 Sep 2007 15:28:14 +0200 Subject: * apt-pkg/packagemanager.{cc,h}: - move DoInstallPostFork() out of the header into the .cc file --- apt-pkg/packagemanager.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'apt-pkg/packagemanager.h') diff --git a/apt-pkg/packagemanager.h b/apt-pkg/packagemanager.h index adcbec3d0..53cd4c96f 100644 --- a/apt-pkg/packagemanager.h +++ b/apt-pkg/packagemanager.h @@ -90,20 +90,7 @@ 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; - - // if all was fine update the state file - if(Res == Completed) { - Cache.writeStateFile(NULL); - } - return Res; - }; - + OrderResult DoInstallPostFork(int statusFd=-1); bool FixMissing(); pkgPackageManager(pkgDepCache *Cache); -- cgit v1.2.3-70-g09d2