diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-23 19:37:09 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-03 11:46:53 +0000 |
commit | c65f5dd18e5f937e25cc16da9dac61e403ef5982 (patch) | |
tree | f55aa5d67b3bf77845bcba3355da9f22b114d462 /src/libutil/processes.cc | |
parent | b252b3c6e3e99ead44e8af99101828c083d65cc0 (diff) |
libutil: convert drainFD to a Bytes generator
the `*Source` name is a slight misnomer since we do also have a
Source type, but we can probably live with this for time being.
Change-Id: I54eb2e59a4009014e324797f16b80b962759c7d3
Diffstat (limited to 'src/libutil/processes.cc')
-rw-r--r-- | src/libutil/processes.cc | 2 |
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(); |