about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-07T00·16+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-07T00·16+0000
commit6a8e60913ac470c704510a733d40d3fab3ecb00d (patch)
tree5e089d76841c314608dbcb85c5f6a6f8ae86a1ea /src/libutil/util.hh
parent79875c5e42eca2e2d05f439da4b0da778385678a (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.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index b88508dec3..b850ee798c 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);