summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
authordzwdz2022-04-10 16:05:22 +0200
committerdzwdz2022-04-10 16:05:22 +0200
commit1677ac032bb89f87456ac5668118f0091ae5ed9f (patch)
treea2319568e1c8ddc2a77c07ca9f0727efd721e435 /src/kernel/proc.c
parent3e7d1acffd81175246fab1ed8be30569c9cd3289 (diff)
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
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c2
1 files changed, 2 insertions, 0 deletions
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;