execCmdEx stderr redirection (#8162)
This commit is contained in:
parent
584d778318
commit
fbd9f9da95
1 changed files with 1 additions and 3 deletions
|
|
@ -884,11 +884,9 @@ elif not defined(useNimRtl):
|
||||||
chck posix_spawn_file_actions_adddup2(fops, data.pStdin[readIdx], readIdx)
|
chck posix_spawn_file_actions_adddup2(fops, data.pStdin[readIdx], readIdx)
|
||||||
chck posix_spawn_file_actions_addclose(fops, data.pStdout[readIdx])
|
chck posix_spawn_file_actions_addclose(fops, data.pStdout[readIdx])
|
||||||
chck posix_spawn_file_actions_adddup2(fops, data.pStdout[writeIdx], writeIdx)
|
chck posix_spawn_file_actions_adddup2(fops, data.pStdout[writeIdx], writeIdx)
|
||||||
chck posix_spawn_file_actions_addclose(fops, data.pStderr[readIdx])
|
|
||||||
if (poStdErrToStdOut in data.options):
|
if (poStdErrToStdOut in data.options):
|
||||||
|
chck posix_spawn_file_actions_addclose(fops, data.pStderr[readIdx])
|
||||||
chck posix_spawn_file_actions_adddup2(fops, data.pStdout[writeIdx], 2)
|
chck posix_spawn_file_actions_adddup2(fops, data.pStdout[writeIdx], 2)
|
||||||
else:
|
|
||||||
chck posix_spawn_file_actions_adddup2(fops, data.pStderr[writeIdx], 2)
|
|
||||||
|
|
||||||
var res: cint
|
var res: cint
|
||||||
if data.workingDir.len > 0:
|
if data.workingDir.len > 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue