From 390aec5ca22e62d128e71d1dee312a2f0a82ab68 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 19 Aug 2022 19:44:36 +0200 Subject: syscall/fs_wait: return a handle for each request --- src/kernel/handle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel/handle.c') 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) -- cgit v1.2.3