From baa4c5e085d81b2021b25adaba61d32e3f835a56 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 18 Aug 2021 17:36:16 +0200 Subject: fork() now has a return value; you can tell the child and parent apart --- src/kernel/syscalls.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/syscalls.h') diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h index 78a47b2..d3ad2a8 100644 --- a/src/kernel/syscalls.h +++ b/src/kernel/syscalls.h @@ -16,7 +16,8 @@ enum { _Noreturn void _syscall_exit(const char *msg, size_t len); /** Creates a copy of the current process, and executes it. - * All user memory pages get copied too. Doesn't return anything useful.. yet. + * All user memory pages get copied too. + * @return 0 in the child, a meaningless positive value in the parent. */ int _syscall_fork(); -- cgit v1.2.3