pipefs: fix poll_event for POLLOUT

This commit is contained in:
Matheus
2024-06-26 21:59:16 -03:00
parent 7feed00dc7
commit 037537c14e
+1 -1
View File
@@ -128,7 +128,7 @@ int pipefs_read(vnode_t *node, void *buffer, size_t size, uintmax_t offset, int
*readc = ringbuffer_read(&pipenode->data, buffer, size);
// signal that there is space to write for any threads blocked on this pipe
if (*readc)
if (RINGBUFFER_DATACOUNT(&pipenode->data) < BUFFER_SIZE - PIPE_ATOMIC_SIZE)
poll_event(&pipenode->pollheader, POLLOUT);
leave: