From b783e8b88f218a1bea4bd4609160867be529d1e8 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Thu, 1 Aug 2024 03:20:42 +0300 Subject: [PATCH] Refactored linux_getpid for easier debugging --- syscalls/linux.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syscalls/linux.cpp b/syscalls/linux.cpp index fc197757..2bddb554 100644 --- a/syscalls/linux.cpp +++ b/syscalls/linux.cpp @@ -1120,7 +1120,8 @@ static int linux_nanosleep(SysFrm *, static pid_t linux_getpid(SysFrm *) { - return thisProcess->ID; + PCB *pcb = thisProcess; + return pcb->ID; } static int linux_setitimer(SysFrm *, int which,