mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
pipefs: fix poll_event for POLLOUT
This commit is contained in:
@@ -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);
|
*readc = ringbuffer_read(&pipenode->data, buffer, size);
|
||||||
|
|
||||||
// signal that there is space to write for any threads blocked on this pipe
|
// 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);
|
poll_event(&pipenode->pollheader, POLLOUT);
|
||||||
|
|
||||||
leave:
|
leave:
|
||||||
|
|||||||
Reference in New Issue
Block a user