diff options
author | Julian Andres Klode <jak@debian.org> | 2019-05-03 14:51:40 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2019-05-03 14:51:40 +0000 |
commit | 9ada8cb08b9d54291993118120712992302b6641 (patch) | |
tree | bcb3a3031af6f0ead0156932453869822567f913 /apt-pkg/contrib/fileutl.h | |
parent | e547a738922b434ae0bad32ead26a1a3c2095d1e (diff) | |
parent | 60cc44d160af02c49614653c97bfa3e4e5c9601d (diff) |
Merge branch 'pu/systemd-inhibitor' into 'master'
Prevent shutdown while running dpkg
See merge request apt-team/apt!60
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 fff49a757..cc0191192 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -283,4 +283,6 @@ bool Popen(const char *Args[], FileFd &Fd, pid_t &Child, FileFd::OpenMode Mode, APT_HIDDEN bool OpenConfigurationFileFd(std::string const &File, FileFd &Fd); +APT_HIDDEN int Inhibit(const char *what, const char *who, const char *why, const char *mode); + #endif |