From 2229fd91f7230ae7068814ae029b733945852eb1 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 2 Apr 2024 09:17:06 +0200 Subject: Kernel: Fix some memory leaks --- userland/libc/signal/kill.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'userland/libc/signal') diff --git a/userland/libc/signal/kill.c b/userland/libc/signal/kill.c index 3351baa..c5ed62b 100644 --- a/userland/libc/signal/kill.c +++ b/userland/libc/signal/kill.c @@ -1,4 +1,6 @@ #include #include -int kill(pid_t pid, int sig) { RC_ERRNO(syscall(SYS_KILL, pid, sig, 0, 0, 0)) } +int kill(int fd, int sig) { + RC_ERRNO(syscall(SYS_KILL, fd, sig, 0, 0, 0)) +} -- cgit v1.2.3