summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
authordzwdz2022-08-04 23:06:57 +0200
committerdzwdz2022-08-04 23:06:57 +0200
commitce00d1677d7a419b427e7f11963eee982a55a231 (patch)
tree2662c3861226f6909b83d57ff8b6ac3b2ba5ec8d /src/kernel/proc.c
parent26dc784103914b9d6ba36e0a96fa4b3af977626f (diff)
do some simple TODOs, organize the rest; general code maintainance
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c2
1 files changed, 0 insertions, 2 deletions
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