summaryrefslogtreecommitdiff
path: root/src/kernel/handle.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/handle.c
parent6bea8cd391125734339dfb83db498a8651c9f7f7 (diff)
syscall/fs_wait: return a handle for each request
Diffstat (limited to 'src/kernel/handle.c')
-rw-r--r--src/kernel/handle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/handle.c b/src/kernel/handle.c
index d95962c..b21ebdc 100644
--- a/src/kernel/handle.c
+++ b/src/kernel/handle.c
@@ -31,6 +31,8 @@ void handle_close(struct handle *h) {
pipe_invalidate_end(h->pipe.sister);
h->pipe.sister->pipe.sister = NULL;
}
+ } else if (h->type == HANDLE_FS_REQ) {
+ if (h->req) vfsreq_finish_short(h->req, -1);
}
if (h->backend)