Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ctr_stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ static bool read_stdio(int fd, stdpipe_t pipe, gboolean *eof)
return false;
} else if (num_read < 0) {
if (errno == EAGAIN || errno == EWOULDBLOCK) {
// Non-blocking mode - no data available, return gracefully
return true;
// Non-blocking mode - no data available, stop draining
return false;
}
/* Ignore EIO if fd is a tty, since this can happen when the tty is closed
while we are reading from it. */
Expand Down
Loading