diff options
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 3350796..8ff5112 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -351,7 +351,9 @@ void _sys_sleep(long ms) { } void _sys_filicide(void) { - proc_filicide(proc_cur, -1); + for (Proc *p = proc_cur->child; p; p = proc_next(p, proc_cur)) { + proc_kill(p, -1); + } } void _sys_intr(void) { |