From 577ed9e01a83c13bf151b5137e6fe1eace1c4f7c Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 2 May 2022 19:25:02 +0200 Subject: syscalls: fork() noreap flag --- src/kernel/proc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 26227e1..c592fd7 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -25,6 +25,7 @@ struct process { enum process_state state; bool deathbed; // kill on next process_switch attempt + bool noreap; struct process *sibling; struct process *child; @@ -64,7 +65,7 @@ extern struct process *process_current; // creates the root process struct process *process_seed(struct kmain_info *info); -struct process *process_fork(struct process *parent); +struct process *process_fork(struct process *parent, int flags); void process_forget(struct process *); // remove references to process void process_free(struct process *); -- cgit v1.2.3