Kernel+LibC: Add sys$disown() for disowning child processes

This syscall allows a parent process to disown a child process, setting
its parent PID to 0.

Unparented processes are automatically reaped by the kernel upon exit,
and no sys$waitid() is required. This will make it much nicer to do
spawn-and-forget which is common in the GUI environment.
This commit is contained in:
Andreas Kling 2020-08-04 13:51:11 +02:00
commit 7de831efc6
Notes: sideshowbarker 2024-07-19 04:19:31 +09:00
7 changed files with 79 additions and 1 deletions

View file

@ -194,7 +194,8 @@ namespace Kernel {
S(sendfd) \
S(recvfd) \
S(sysconf) \
S(set_process_name)
S(set_process_name) \
S(disown)
namespace Syscall {