]> 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)
commit466c6a48dba9d248c5d3240e22b4b359a3878bac
treef106bab9d18bb48affc2ce218b0b6d569028f2b5
parentd6c448e6af68613f924172e13a0be28cebdd1baa
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