]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Create PID1 from the thread passed in init
authorMichalis Pappas <michalis@unikraft.io>
Wed, 26 Mar 2025 04:47:09 +0000 (05:47 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 17 Apr 2025 12:41:44 +0000 (12:41 +0000)
commit54c730bb6649f70866b5ac6dbac395c3ff1b0ff4
treebbbfddcb7440f06ffcf4a0c0c3cf9ff0f11d43b6
parent0dc7050fd16b3c0c3ef5ed44540ff5a273d54bea
lib/posix-process: Create PID1 from the thread passed in init

Update the instantiation of INIT_PID to use the thread passed in the
init context. This allows excluding unikraft's init thread from the
process when libukboot creates a separate thread for main().

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
GitHub-Closes: #1620
lib/posix-process/process.c
lib/posix-process/process.h