mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-02 16:22:40 -06:00
Bazaar/SysExec : two more changes fow windows -- tests OK
git-svn-id: svn://ultimatepp.org/upp/trunk@3054 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0c45bc9b9a
commit
1e57f896f7
1 changed files with 4 additions and 2 deletions
|
|
@ -89,8 +89,10 @@ bool SysExec(String const &command, String const &args, const VectorMap<String,
|
|||
fflush(stderr);
|
||||
|
||||
// restores stdout and stderr handles
|
||||
dup2(saveStdout, 1);
|
||||
dup2(saveStderr, 2);
|
||||
if(saveStdout != -1)
|
||||
dup2(saveStdout, 1);
|
||||
if(saveStderr != -1)
|
||||
dup2(saveStderr, 2);
|
||||
|
||||
if (result == -1)
|
||||
Cerr() << "Error spawning process\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue