]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Add wait4() and waitid()
authorMichalis Pappas <michalis@unikraft.io>
Wed, 26 Mar 2025 07:52:00 +0000 (08:52 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 09:56:07 +0000 (09:56 +0000)
commitfab66b5531e28d75e4138c2051276f8b6cb6dca0
tree634f13f7c498302ec8733f1e4332b823006b868a
parent7a013bf2f8d54a943ff51966dfd1632b4c4bc774
lib/posix-process: Add wait4() and waitid()

wait4() and waitid() block until a state change in the calling process.
In the case of termination, the wait syscall reaps the child. For more
info see wait(2).

This patch implements support for process termination (exit / kill) and
does not implement other state changes like stop and continue.

Checkpatch-Ignore: MACRO_ARG_REUSE
Checkpatch-Ignore: POINTER_LOCATION
Checkpatch-Ignore: TYPECAST_INT_CONSTANT
Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
GitHub-Closes: #1630
lib/posix-process/Makefile.uk
lib/posix-process/process.h
lib/posix-process/signal/siginfo.h
lib/posix-process/wait.c