aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/processes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/processes.cc')
-rw-r--r--src/libutil/processes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/processes.cc b/src/libutil/processes.cc
index 250092393..bd5ccdb4b 100644
--- a/src/libutil/processes.cc
+++ b/src/libutil/processes.cc
@@ -315,7 +315,7 @@ void runProgram2(const RunOptions & options)
out.writeSide.close();
if (options.standardOut)
- drainFD(out.readSide.get(), *options.standardOut);
+ *options.standardOut << drainFDSource(out.readSide.get());
/* Wait for the child to finish. */
int status = pid.wait();