Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mkv muxer: handle EAGAIN in the write loop
  • Loading branch information
perexg committed Nov 19, 2015
1 parent f849b08 commit ccfbe31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/muxer/muxer_mkv.c
Expand Up @@ -471,6 +471,8 @@ mk_write_to_fd(mk_muxer_t *mk, htsbuf_queue_t *hq)
ssize_t r;
int iovcnt = i < dvr_iov_max ? i : dvr_iov_max;
if((r = writev(mk->fd, iov, iovcnt)) == -1) {
if (ERRNO_AGAIN(errno))
continue;
mk->error = errno;
return -1;
}
Expand Down

0 comments on commit ccfbe31

Please sign in to comment.