12 #ifndef ZYPP_MISC_CHECKACCESSDELETED_H 13 #define ZYPP_MISC_CHECKACCESSDELETED_H 68 {
if ( doCheck_r )
check(); }
83 size_type
check(
bool verbose_r =
false );
88 const_iterator
end()
const {
return _data.end(); }
111 #endif // ZYPP_MISC_CHECKACCESSDELETED_H Data about one running process accessing deleted files.
std::vector< ProcInfo > _data
std::string service() const
Guess if command was started by a systemd service script.
std::string command
process command name
String related utilities and Regular expression matching.
size_type check(bool verbose_r=false)
Check for running processes which access deleted executables or libraries.
std::string pid
process ID
std::string puid
process user ID
std::ostream & operator<<(std::ostream &str, const CheckAccessDeleted::ProcInfo &obj)
Check for running processes which access deleted executables or libraries.
const_iterator end() const
CheckAccessDeleted(bool doCheck_r=true)
Default ctor performs check immediately.
Easy-to use interface to the ZYPP dependency resolver.
const_iterator begin() const
std::vector< ProcInfo >::const_iterator const_iterator
std::string login
process login name
std::vector< std::string > files
list of deleted executables or libraries accessed
std::string ppid
parent process ID
static std::string findService(pid_t pid_r)
Guess if pid was started by a systemd service script.