From 82e2a070e0d2a617cb47c285e176a3fff3ca64e8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 12 Oct 2016 15:49:37 +0200 Subject: Add some functions needed by hydra --- src/libutil/util.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libutil/util.cc') diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 1f923fe6b..ce16cc30a 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -778,6 +778,14 @@ void Pid::setKillSignal(int signal) } +pid_t Pid::release() +{ + pid_t p = pid; + pid = -1; + return p; +} + + void killUser(uid_t uid) { debug(format("killing all processes running under uid ‘%1%’") % uid); -- cgit v1.2.3