]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/posix-process: Deprecate POSIX_PROCESS_INIT_PIDS
authorMichalis Pappas <michalis@unikraft.io>
Mon, 19 Feb 2024 11:05:04 +0000 (12:05 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 09:42:51 +0000 (09:42 +0000)
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 <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1627

lib/posix-process/Config.uk
lib/posix-process/process.h

index b9f7e5e5da0ebee8a0bceaf182bb5eaa823b8bc2..314c7c8cd2367b09980f33478c6f7771628446b5 100644 (file)
@@ -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
index c2dbb4cfc3d0176b43566beeb0e6ae444a581185..6b15de901c91c2821ded20a00b17b091a159f376 100644 (file)
@@ -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).