summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
authordzwdz2022-08-19 19:44:36 +0200
committerdzwdz2022-08-19 19:44:36 +0200
commit390aec5ca22e62d128e71d1dee312a2f0a82ab68 (patch)
tree2a79bb1ee35dab3006a947f595891fbcfefa4bfb /src/kernel/proc.c
parent6bea8cd391125734339dfb83db498a8651c9f7f7 (diff)
syscall/fs_wait: return a handle for each request
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index ebd7cce..ed7180b 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -74,10 +74,6 @@ struct process *process_fork(struct process *parent, int flags) {
child->id = next_pid++;
- // TODO control this with a flag
- child->handled_req = parent->handled_req;
- parent->handled_req = NULL;
-
if ((flags & FORK_NEWFS) == 0 && parent->controlled) {
child->controlled = parent->controlled;
child->controlled->potential_handlers++;
@@ -122,11 +118,6 @@ static bool unref(uint64_t *refcount) {
void process_kill(struct process *p, int ret) {
if (p->state != PS_DEAD) {
- if (p->handled_req) {
- vfsreq_finish_short(p->handled_req, -1);
- p->handled_req = NULL;
- }
-
if (p->controlled) {
// TODO vfs_backend_user_handlerdown
assert(p->controlled->potential_handlers > 0);