summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
authordzwdz2021-10-04 21:37:01 +0200
committerdzwdz2021-10-04 21:37:01 +0200
commit33ef18732abb1ec03469b7c0fe271a6599318682 (patch)
tree7e3c98ab62aff568d793632e206011def778711e /src/kernel/syscalls.c
parent1d5e56659af7945daac0f79a06b839bfd59c8f1f (diff)
implement process_kill()
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index c89efc7..22bf1f6 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -9,9 +9,7 @@
#include <stdint.h>
_Noreturn void _syscall_exit(int ret) {
- process_current->state = PS_DEAD;
- process_current->death_msg = ret;
- process_try2collect(process_current);
+ process_kill(process_current, ret);
process_switch_any();
}