From b25156373cd89792b1c457b77699bb7f9beb430d Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 26 Aug 2024 18:51:10 +0300 Subject: improve killing processes/threads, test + Remove sys_kill() as we should be using a two-stage process where a thread is first orphaned by sys_detach(), and then the thread itself calls sys_exit() after it has done all necessary cleanup in init. --- src/uapi/dispatch.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/uapi/dispatch.c') diff --git a/src/uapi/dispatch.c b/src/uapi/dispatch.c index 859543a..2eef5bc 100644 --- a/src/uapi/dispatch.c +++ b/src/uapi/dispatch.c @@ -71,7 +71,6 @@ void handle_syscall(sys_arg_t syscall, sys_arg_t a, sys_arg_t b, case SYS_FORK: sys_fork(t, a, b, c, d, e); break; case SYS_EXEC: sys_exec(t, a, b, c, d, e); break; case SYS_SPAWN: sys_spawn(t, a, b, c, d, e); break; - case SYS_KILL: sys_kill(t, a, b, c, d, e); break; case SYS_SWAP: sys_swap(t, a, b, c, d, e); break; case SYS_SET_CONF: sys_set_conf(t, a, b, c, d, e); break; case SYS_GET_CONF: sys_get_conf(t, a, b, c, d, e); break; -- cgit v1.3