From 42e4b941b70499f5cf10f41126af1634821d72d5 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 15 Apr 2022 23:42:43 +0200 Subject: kernel/vfs: don't hang on orphaned vfs calls --- src/kernel/syscalls.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/syscalls.c') diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 217fa77..31bd0de 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -189,6 +189,7 @@ handle_t _syscall_fs_fork2(void) { backend = kmalloc(sizeof *backend); // TODO never freed backend->type = VFS_BACK_USER; + backend->potential_handlers = 1; backend->handler = NULL; backend->queue = NULL; -- cgit v1.2.3