From 0305b0abe4ada656462d575a5e0f0618b42def2d Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 23 Apr 2024 14:35:09 +0200 Subject: VFS: Fix reference count of file descriptors. It appears that there was a race condition where the process got closed before the server accepted the incoming request. Causing the file descriptor to have "0" in the reference count but it would still be given when calling accept. --- kernel/fs/fifo.h | 1 - 1 file changed, 1 deletion(-) (limited to 'kernel/fs/fifo.h') diff --git a/kernel/fs/fifo.h b/kernel/fs/fifo.h index 456b85d..450b9b5 100644 --- a/kernel/fs/fifo.h +++ b/kernel/fs/fifo.h @@ -14,7 +14,6 @@ struct S_FIFO_FILE { u8 can_write; }; -int create_fifo(void); FIFO_FILE *create_fifo_object(void); int fifo_object_write(u8 *buffer, u64 offset, u64 len, FIFO_FILE *file); int fifo_object_read(u8 *buffer, u64 offset, u64 len, FIFO_FILE *file); -- cgit v1.2.3