mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
Kernel: Print to the log what is the first user process & its arguments
This commit is contained in:
parent
9254ed4f08
commit
4a50c01c50
Notes:
sideshowbarker
2024-07-17 03:03:15 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/4a50c01c50 Pull-request: https://github.com/SerenityOS/serenity/pull/21633 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/shannonbooth ✅
@ -449,6 +449,8 @@ void init_stage2(void*)
|
||||
auto userspace_init = kernel_command_line().userspace_init();
|
||||
auto init_args = kernel_command_line().userspace_init_args();
|
||||
|
||||
dmesgln("Running first user process: {}", userspace_init);
|
||||
dmesgln("Init (first) process args: {}", init_args);
|
||||
auto init_or_error = Process::create_user_process(userspace_init, UserID(0), GroupID(0), move(init_args), {}, tty0);
|
||||
if (init_or_error.is_error())
|
||||
PANIC("init_stage2: Error spawning init process: {}", init_or_error.error());
|
||||
|
Loading…
Reference in New Issue
Block a user