diff options
author | dzwdz | 2023-09-24 14:06:34 +0200 |
---|---|---|
committer | dzwdz | 2023-09-24 14:06:34 +0200 |
commit | 16138fc20fc9c472af37fb8385a997a0d9202f32 (patch) | |
tree | a1083fe2f2f5695b1c1f402e5c91b32233623b12 /src/kernel/syscalls.c | |
parent | 6a4d4a41a664e6a4c406a449ea847abd4a224bcf (diff) |
kernel: delay removing processes from tree
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) { |