From 9edd65c48ee75751327c6ee6d42a7009e726d667 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 10 Nov 2022 15:14:10 +0200 Subject: initial implementation of process copying + Not actually working (at least fully), need to continue debugging when I have time. --- common/uapi/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/uapi') diff --git a/common/uapi/proc.c b/common/uapi/proc.c index 0039195..5dbd90c 100644 --- a/common/uapi/proc.c +++ b/common/uapi/proc.c @@ -63,9 +63,9 @@ SYSCALL_DEFINE0(fork)(){ return SYS_RET1(ERR_OOMEM); /* prepare args for when we eventually swap to the new proc */ - set_args(t, SYS_RET2(OK, t->pid)); + set_args(t, SYS_RET2(OK, 0)); - return SYS_RET2(OK, 0); + return SYS_RET2(OK, t->pid); } /** -- cgit v1.3