kernel: Use path as the new process name instead of argv[0]
This commit is contained in:
parent
8b712b04c2
commit
0de41410c6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user