diff options
author | Michael Vogt <mvo@debian.org> | 2013-10-31 22:55:38 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-10-31 22:55:38 +0100 |
commit | e45c4617e496b49f8d7225546a751022f246a2f3 (patch) | |
tree | 19fa436f3760c896d997baedb89fd128594279ce /apt-pkg/contrib/fileutl.h | |
parent | 177296dffd8bf7d9ce5870b135c412958aab3756 (diff) |
add new pid_t ExecFork(std::set<int> KeepFDs) to get rid of the super ugly APT::Keep-Fds hack and also add a new PackageManagerProgressFd::StartDpkg() progress state
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-rw-r--r-- | apt-pkg/contrib/fileutl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index decd64d9d..63a999c30 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -26,6 +26,7 @@ #include <string> #include <vector> +#include <set> #include <zlib.h> @@ -182,6 +183,7 @@ void SetCloseExec(int Fd,bool Close); void SetNonBlock(int Fd,bool Block); bool WaitFd(int Fd,bool write = false,unsigned long timeout = 0); pid_t ExecFork(); +pid_t ExecFork(std::set<int> keep_fds); bool ExecWait(pid_t Pid,const char *Name,bool Reap = false); // File string manipulators |