mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
pipefs: fix write handling on closed readers
This commit is contained in:
@@ -225,7 +225,7 @@ int pipefs_write(vnode_t *node, iovec_iterator_t *iovec_iterator, size_t size, u
|
||||
while (1) {
|
||||
// check for space or if the read end has been closed
|
||||
int revents = internalpoll(node, NULL, POLLOUT);
|
||||
if (revents & POLLHUP)
|
||||
if (revents & POLLERR)
|
||||
break;
|
||||
|
||||
size_t freebytes = RINGBUFFER_FREESPACE(&pipenode->data);
|
||||
|
||||
Reference in New Issue
Block a user