X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=1baa6c34b310fd48517b6df9bd9384819e6caa8d;hp=e12d6e98fce4baa902d03e21c48aee4fba0237da;hb=0cbd0ac87ebe208b0d47df28e86c16886bdb687d;hpb=ef1f130a1f9ac61a51da10ee56c5bd9ef1b52366 diff --git a/audioc.c b/audioc.c index e12d6e98..1baa6c34 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. */ @@ -298,7 +298,9 @@ int main(int argc, char *argv[]) .check_required = 0, .check_ambiguity = 0 }; - if (audioc_cmdline_parser_config_file(cf, &conf, ¶ms)) { + ret = audioc_cmdline_parser_config_file(cf, &conf, ¶ms); + free(cf); + if (ret) { fprintf(stderr, "parse error in config file\n"); exit(EXIT_FAILURE); } @@ -332,6 +334,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)