From 0de41410c66140f5572b9b461fbc5d4cf98a44fe Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 24 Mar 2023 21:26:45 +0100 Subject: [PATCH] kernel: Use path as the new process name instead of argv[0] --- kernel/src/sys/exec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/sys/exec.cpp b/kernel/src/sys/exec.cpp index bf50a4bf..f747a687 100644 --- a/kernel/src/sys/exec.cpp +++ b/kernel/src/sys/exec.cpp @@ -86,7 +86,7 @@ Result 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);