From df9343bb9ea8311a0f0ea0cd37d91013ce59f2f9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 29 Sep 2023 09:21:20 +0200 Subject: *: properly remove _sys_filicide not sure how that slipped by --- src/cmd/tests/tests.c | 1 + src/kernel/syscalls.c | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cmd/tests/tests.c b/src/cmd/tests/tests.c index ce28eb3..2b7ba01 100644 --- a/src/cmd/tests/tests.c +++ b/src/cmd/tests/tests.c @@ -1,4 +1,5 @@ #include "tests.h" +#include #include #include #include diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index c5a2f50..e449953 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -350,12 +350,6 @@ void _sys_sleep(long ms) { timer_schedule(proc_cur, ms * 1000000); } -void _sys_filicide(void) { - for (Proc *p = proc_cur->child; p; p = proc_next(p, proc_cur)) { - proc_kill(p, -1); - } -} - int _sys_intr(const char __user *msg, size_t len) { char buf[INTR_MAX]; int count = 0; -- cgit v1.2.3