/*
- * Copyright (C) 2005-2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
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)