From: Michalis Pappas Date: Mon, 19 Feb 2024 11:05:04 +0000 (+0100) Subject: lib/posix-process: Deprecate POSIX_PROCESS_INIT_PIDS X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=22b76840ba27d6a2bf45bc6eeb20f1def58ab902;p=unikraft%2Funikraft.git lib/posix-process: Deprecate POSIX_PROCESS_INIT_PIDS Retire POSIX_PROCESS_INIT_PIDS and assign PID 1 to the init process by default. This improves consistency and reduces configuration complexity. Signed-off-by: Michalis Pappas Approved-by: Andrei Tatar Reviewed-by: Sergiu Moga Reviewed-by: Andrei Tatar GitHub-Closes: #1627 --- diff --git a/lib/posix-process/Config.uk b/lib/posix-process/Config.uk index b9f7e5e5d..314c7c8cd 100644 --- a/lib/posix-process/Config.uk +++ b/lib/posix-process/Config.uk @@ -28,19 +28,12 @@ config LIBPOSIX_PROCESS_EXECVE endif -menuconfig LIBPOSIX_PROCESS_MULTIPROCESS +config LIBPOSIX_PROCESS_MULTIPROCESS bool "Multiprocess support" depends on HAVE_VFS select LIBPOSIX_PROCESS_MULTITHREADING select LIBPOSIX_PROCESS_EXECVE -if LIBPOSIX_PROCESS_MULTIPROCESS - -config LIBPOSIX_PROCESS_INIT_PIDS - bool "Assign PID during boot" - -endif - config LIBPOSIX_PROCESS_SIGNAL bool "POSIX signals (EXPERIMENTAL)" select LIBPOSIX_PROCESS_MULTITHREADING diff --git a/lib/posix-process/process.h b/lib/posix-process/process.h index c2dbb4cfc..6b15de901 100644 --- a/lib/posix-process/process.h +++ b/lib/posix-process/process.h @@ -46,7 +46,8 @@ extern struct uk_thread *pprocess_thread_main; #if CONFIG_LIBPOSIX_PROCESS_MULTITHREADING -#define TIDMAP_SIZE (CONFIG_LIBPOSIX_PROCESS_MAX_PID + 1) +#define UK_PID_INIT 1 +#define TIDMAP_SIZE (CONFIG_LIBPOSIX_PROCESS_MAX_PID + 1) /* Notice: The RUNNING state is not necessarily in sync with the state * of the underlying uk_thread (may be blocked by the scheduler).