summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-05-02 19:25:02 +0200
committerdzwdz2022-05-02 19:25:02 +0200
commit577ed9e01a83c13bf151b5137e6fe1eace1c4f7c (patch)
tree750dd8a3536ce70d817e6920c89042ee94899a29 /src/kernel/proc.h
parentd9dc6a0c4c5047c3789a16ef623eeff7c240f5a9 (diff)
syscalls: fork() noreap flag
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h3
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 *);