diff options
Diffstat (limited to 'src/kernel/handle.c')
-rw-r--r-- | src/kernel/handle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/handle.c b/src/kernel/handle.c index f216c13..06a810c 100644 --- a/src/kernel/handle.c +++ b/src/kernel/handle.c @@ -1,3 +1,4 @@ +#include <camellia/errno.h> #include <kernel/handle.h> #include <kernel/malloc.h> #include <kernel/panic.h> @@ -22,7 +23,7 @@ void handle_close(Handle *h) { if (h->base) { handle_close(h->base); } else { - vfsreq_create((VfsReq) { + vfsreq_dispatchcopy((VfsReq) { .type = VFSOP_CLOSE, .id = h->file_id, .caller = NULL, @@ -36,7 +37,7 @@ void handle_close(Handle *h) { h->pipe.sister->pipe.sister = NULL; } } else if (h->type == HANDLE_FS_REQ) { - if (h->req) vfsreq_finish_short(h->req, -1); + if (h->req) vfsreq_finish_short(h->req, -EPIPE); } if (h->backend) { |