]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Correct MAX_PID config option
authorFlorin Postolache <florin.postolache.of@gmail.com>
Thu, 11 May 2023 09:44:58 +0000 (12:44 +0300)
committerUnikraft <monkey@unikraft.io>
Fri, 12 May 2023 08:19:04 +0000 (08:19 +0000)
commita1c73be910b779b3b57a5ae79435d4f86b488fa2
treecda8adc04e1c1f115f01eab1e50050563da3aec5
parentddefe64f12ab4599f0ea3064bbbfedbf5205384f
lib/posix-process: Correct MAX_PID config option

This commit changes the tid_map size to reflect the kernel
reservation of the 0 TID/PID value. Before, the first thread
would set the 0 position in all used structures. Now, because
it will be already set, we need to make room for another.

Signed-off-by: Florin Postolache <florin.postolache.of@gmail.com>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Andra Paraschiv <andra@unikraft.org>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #885
lib/posix-process/Config.uk
lib/posix-process/process.c