diff options
author | dzwdz | 2022-05-02 19:25:02 +0200 |
---|---|---|
committer | dzwdz | 2022-05-02 19:25:02 +0200 |
commit | 577ed9e01a83c13bf151b5137e6fe1eace1c4f7c (patch) | |
tree | 750dd8a3536ce70d817e6920c89042ee94899a29 /src/kernel/proc.h | |
parent | d9dc6a0c4c5047c3789a16ef623eeff7c240f5a9 (diff) |
syscalls: fork() noreap flag
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r-- | src/kernel/proc.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 *); |