From ce00d1677d7a419b427e7f11963eee982a55a231 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 23:06:57 +0200 Subject: do some simple TODOs, organize the rest; general code maintainance --- src/kernel/proc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/kernel/proc.c') diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 3bf2b0d..6bc7057 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -65,7 +65,6 @@ struct process *process_fork(struct process *parent, int flags) { parent->handled_req = NULL; if ((flags & FORK_NEWFS) == 0 && parent->controlled) { - // TODO would it be better to change the default to not sharing the controlled fs? child->controlled = parent->controlled; child->controlled->potential_handlers++; child->controlled->refcount++; @@ -149,7 +148,6 @@ void process_kill(struct process *p, int ret) { p->execbuf.buf = NULL; } - if (p->parent) pagedir_free(p->pages); // TODO put init's pages in the allocator // TODO VULN unbounded recursion -- cgit v1.2.3