summaryrefslogtreecommitdiff
path: root/src/tee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tee.c')
-rw-r--r--src/tee.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tee.c b/src/tee.c
index e328e6f04..dcf773e16 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -290,7 +290,8 @@ tee_files (int nfiles, char **files)
if (pipe_check && out_pollable[first_out])
{
/* Monitor for input, or errors on first valid output. */
- int err = iopoll (STDIN_FILENO, fileno (descriptors[first_out]));
+ int err = iopoll (STDIN_FILENO, fileno (descriptors[first_out]),
+ true);
/* Close the output if it became a broken pipe. */
if (err == IOPOLL_BROKEN_OUTPUT)