X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=7435a86919a9cf745282c2d75d77471231d45e54;hp=e12d6e98fce4baa902d03e21c48aee4fba0237da;hb=9de1287d67c9562e9140c6dc7deb0c01c4e10cc0;hpb=65dfcde0ee400d5a32a06122eb47d03d2139212c diff --git a/audioc.c b/audioc.c index e12d6e98..7435a869 100644 --- a/audioc.c +++ b/audioc.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -332,6 +332,9 @@ int main(int argc, char *argv[]) goto out; bufsize = conf.bufsize_arg; buf = para_malloc(bufsize); + ret = mark_fd_blocking(STDOUT_FILENO); + if (ret < 0) + goto out; do { size_t n = ret = recv_bin_buffer(fd, buf, bufsize); if (ret <= 0)