From 1677ac032bb89f87456ac5668118f0091ae5ed9f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 10 Apr 2022 16:05:22 +0200 Subject: init/fs: handle delegated reads in a subprocess first off: this is horrible. there's no CoW, so this is horribly slow. the sole purpose of this is to let the userland delegate handle multiple requests at once, because i'm implementing concurrent IO and I kinda need that. it's possible that handling of multiple requests could be handled in a better way - but this could be good enough once i implement CoW --- src/kernel/proc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel/proc.c') diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 8e94d24..cf5bb1e 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -54,6 +54,8 @@ struct process *process_fork(struct process *parent) { child->parent = parent; parent->child = child; + parent->handled_req = NULL; // TODO control this with a flag + child->id = next_pid++; return child; -- cgit v1.2.3