summaryrefslogtreecommitdiff
path: root/kernel/fs/fifo.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-04-23 14:35:09 +0200
committerAnton Kling <anton@kling.gg>2024-04-23 14:35:09 +0200
commit0305b0abe4ada656462d575a5e0f0618b42def2d (patch)
treeecffe02ac3670457ed2cf0fbb513efbb69867d01 /kernel/fs/fifo.h
parent33663539c2bac856cf2abe79e815ad179dffecdf (diff)
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.
Diffstat (limited to 'kernel/fs/fifo.h')
-rw-r--r--kernel/fs/fifo.h1
1 files changed, 0 insertions, 1 deletions
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);