diff options
author | eldritch horrors <pennae@lix.systems> | 2024-06-23 15:19:47 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-06-23 17:29:40 +0000 |
commit | d477b34d1df3b471f8132525b0a008bbd03ddb6d (patch) | |
tree | dbf58b2cfd0f5ed0944ca62dcfc7cd73b34b5dee /src/libutil/processes.hh | |
parent | 2bbdaf0b19066ea1764e8d5810c2b250dbf0a850 (diff) |
libutil: remove runProgram2 stdin functionality
this was only used in one place, and that place has been rewritten to
use a temporary file instead. keeping this around is not very helpful
at this time, and in any case we'd be better off rewriting subprocess
handling in rust where we not only have a much safer library for such
things but also async frameworks necessary for this easily available.
Change-Id: I6f8641b756857c84ae2602cdf41f74ee7a1fda02
Diffstat (limited to 'src/libutil/processes.hh')
-rw-r--r-- | src/libutil/processes.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libutil/processes.hh b/src/libutil/processes.hh index 001e1fa12..48a195481 100644 --- a/src/libutil/processes.hh +++ b/src/libutil/processes.hh @@ -71,8 +71,7 @@ Pid startProcess(std::function<void()> fun, const ProcessOptions & options = Pro * shell backtick operator). */ std::string runProgram(Path program, bool searchPath = false, - const Strings & args = Strings(), - const std::optional<std::string> & input = {}, bool isInteractive = false); + const Strings & args = Strings(), bool isInteractive = false); struct RunOptions { @@ -83,8 +82,6 @@ struct RunOptions std::optional<uid_t> gid; std::optional<Path> chdir; std::optional<std::map<std::string, std::string>> environment; - std::optional<std::string> input; - Source * standardIn = nullptr; Sink * standardOut = nullptr; bool mergeStderrToStdout = false; bool isInteractive = false; |