From 7c4f5e6464a7d9a9c48b4d6773fbb348624cc32e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 6 Jun 2017 14:05:38 +0300 Subject: Support passing environment variables to child process --- libbutl/openssl.txx | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'libbutl/openssl.txx') diff --git a/libbutl/openssl.txx b/libbutl/openssl.txx index aaaa239..0a1788f 100644 --- a/libbutl/openssl.txx +++ b/libbutl/openssl.txx @@ -24,14 +24,13 @@ namespace butl typename I, typename O, typename E, - typename P, typename... A> openssl:: openssl (const C& cmdc, I&& in, O&& out, E&& err, - const P& program, + const process_env& env, const std::string& command, A&&... options) { @@ -39,17 +38,15 @@ namespace butl io_data out_data; process& p (*this); - p = process_start ( - cmdc, - map_in (std::forward (in), in_data), - map_out (std::forward (out), out_data), - std::forward (err), - dir_path (), - program, - command, - in_data.options, - out_data.options, - std::forward (options)...); + p = process_start (cmdc, + map_in (std::forward (in), in_data), + map_out (std::forward (out), out_data), + std::forward (err), + env, + command, + in_data.options, + out_data.options, + std::forward (options)...); // Note: leaving this scope closes any open ends of the pipes in io_data. } -- cgit v1.1