diff options
author | Anton Kling <anton@kling.gg> | 2024-04-23 14:35:09 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-23 14:35:09 +0200 |
commit | 0305b0abe4ada656462d575a5e0f0618b42def2d (patch) | |
tree | ecffe02ac3670457ed2cf0fbb513efbb69867d01 /kernel/fs/fifo.h | |
parent | 33663539c2bac856cf2abe79e815ad179dffecdf (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.h | 1 |
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); |