38 std::stringstream
ss;
ss <<
"/proc/" << process.
pid() <<
"/oom_score";
39 std::ifstream
in(
ss.str());
The Process class models a process and possible operations on it.
virtual pid_t pid() const
Query the pid of the process.
CORE_POSIX_DLL_PUBLIC const posix::Process & operator>>(const posix::Process &process, OomAdj &adj)
Read the OomAdj value for a process instance.
Signal
The Signal enum collects the most common POSIX signals.