mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Add some functions needed by hydra
This commit is contained in:
parent
edf9eb8181
commit
82e2a070e0
3 changed files with 17 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue