diff options
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 8e42f8e..8bd7de3 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -367,6 +367,10 @@ void _syscall_sleep(long ms) { timer_schedule(process_current, uptime_ms() + ms); } +void _syscall_filicide(void) { + process_filicide(process_current, -1); +} + long _syscall_execbuf(void __user *ubuf, size_t len) { if (len == 0) SYSCALL_RETURN(0); if (len > EXECBUF_MAX_LEN) @@ -416,6 +420,7 @@ long _syscall(long num, long a, long b, long c, long d, long e) { break; case _SYSCALL_MEMFLAG: _syscall_memflag((userptr_t)a, b, c); break; case _SYSCALL_PIPE: _syscall_pipe((userptr_t)a, b); break; case _SYSCALL_SLEEP: _syscall_sleep(a); + break; case _SYSCALL_FILICIDE: _syscall_filicide(); break; case _SYSCALL_EXECBUF: _syscall_execbuf((userptr_t)a, b); break; case _SYSCALL_DEBUG_KLOG: _syscall_debug_klog((userptr_t)a, b); break; |