kernel: Use path as the new process name instead of argv[0]

This commit is contained in:
apio 2023-03-24 21:26:45 +01:00
parent 8b712b04c2
commit 0de41410c6
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -86,7 +86,7 @@ Result<u64> sys_exec(Registers* regs, SyscallArgs args)
MMU::delete_userspace_page_directory(current->directory);
current->name = argv[0].chars();
current->name = path.chars();
image->apply(current);