diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-07T00·16+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-07T00·16+0000 |
commit | 6a8e60913ac470c704510a733d40d3fab3ecb00d (patch) | |
tree | 5e089d76841c314608dbcb85c5f6a6f8ae86a1ea /src/libutil/util.hh | |
parent | 79875c5e42eca2e2d05f439da4b0da778385678a (diff) |
* Move killUser() to libutil so that the setuid helper can use it.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index b88508dec30d..b850ee798c7c 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -224,6 +224,11 @@ public: }; +/* Kill all processes running under the specified uid by sending them + a SIGKILL. */ +void killUser(uid_t uid); + + /* Run a program and return its stdout in a string (i.e., like the shell backtick operator). */ string runProgram(Path program); |