mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Utilities: Inherit env vars when starting external processes
(cherry picked from commit 5b15b714ab)
This commit is contained in:
@@ -92,6 +92,7 @@ static int CreateChildProcess(T waiter, std::string const& executable,
|
||||
// With binding stdin
|
||||
return execute(run_exe(boost::filesystem::absolute(executable)),
|
||||
set_args(args),
|
||||
inherit_env(),
|
||||
bind_stdin(*inputSource),
|
||||
bind_stdout(file_descriptor_sink(outPipe.sink, close_handle)),
|
||||
bind_stderr(file_descriptor_sink(errPipe.sink, close_handle)));
|
||||
@@ -101,6 +102,7 @@ static int CreateChildProcess(T waiter, std::string const& executable,
|
||||
// Without binding stdin
|
||||
return execute(run_exe(boost::filesystem::absolute(executable)),
|
||||
set_args(args),
|
||||
inherit_env(),
|
||||
bind_stdout(file_descriptor_sink(outPipe.sink, close_handle)),
|
||||
bind_stderr(file_descriptor_sink(errPipe.sink, close_handle)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user