]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
posix: add kill(SIGKILL) syscall
authorTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 03:53:48 +0000 (00:53 -0300)
committerTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 03:53:48 +0000 (00:53 -0300)
commitf5a2441a0e608d88334c6879f5eb4d0e4e8f4543
treef91089f289ce8aa14be9c2f23f20553f4d864c92
parentc556f7db546ad36bb6cb72801dfbe0eaba2b7236
posix: add kill(SIGKILL) syscall

Introduce a minimal kill(pid,sig) syscall with SIGKILL support. Implement process_kill() to mark target as zombie, close its FDs with refcounting, and wake a waiting parent. Add ESRCH and a userland init.elf smoke test.
include/errno.h
include/process.h
include/syscall.h
src/kernel/scheduler.c
src/kernel/syscall.c
user/init.c