diff --git a/NEWS b/NEWS index c2ff3fbb..8085aaf6 100644 --- a/NEWS +++ b/NEWS @@ -25,6 +25,7 @@ TODO: Make libout123 and/or mpg123 use that to convert on the fly. Optionally? out there. - mpg123: -- Drop --STDOUT (never properly implemented, use pipe to out123 instead). +-- Make --streamdump use unintr_write() to avoid inconsistencies. -- Now sets non-zero exit code when any one track of the playlist fails to either produce at least one frame of playback, if there is data that should produce such (i.e. /dev/zero is bad, /dev/null is diff --git a/src/streamdump.c b/src/streamdump.c index 86d4eb2a..8d0ae368 100644 --- a/src/streamdump.c +++ b/src/streamdump.c @@ -20,7 +20,7 @@ static ssize_t dump_read(int fd, void *buf, size_t count) ssize_t ret = read(fd, buf, count); if(ret > 0 && dump_fd > -1) { - ret = write(dump_fd, buf, ret); + ret = unintr_write(dump_fd, buf, ret); } return ret; }