diff options
author | Anton Kling <anton@kling.gg> | 2023-10-30 20:46:36 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-30 21:49:48 +0100 |
commit | ecf1e4c6c6efc3edeb006ff120ac60a191ddce50 (patch) | |
tree | db5e312704d43ec8ff0a81bc87c9a1cdf6b01970 /userland/libc/signal/kill.c | |
parent | c7a07bf214ef9b3fabc15c8e70f696ede9644c2c (diff) |
Kernel/LibC: Add signals and support for custom signal handlers to processes.
Diffstat (limited to 'userland/libc/signal/kill.c')
-rw-r--r-- | userland/libc/signal/kill.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/userland/libc/signal/kill.c b/userland/libc/signal/kill.c new file mode 100644 index 0000000..3351baa --- /dev/null +++ b/userland/libc/signal/kill.c @@ -0,0 +1,4 @@ +#include <signal.h> +#include <syscall.h> + +int kill(pid_t pid, int sig) { RC_ERRNO(syscall(SYS_KILL, pid, sig, 0, 0, 0)) } |