vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / signal / killpg.cpp
blob0ee8e644b0204265bd57974273bb5fb7e7031185
1 /*
2 * Copyright 2007, Vasilis Kaoutsis, kaoutsis@sch.gr.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <errno.h>
8 #include <signal.h>
10 #include <errno_private.h>
13 int
14 killpg(pid_t processGroupID, int signal)
16 if (processGroupID > 1)
17 return kill(-processGroupID, signal);
18 else {
19 __set_errno(EINVAL);
20 return -1;