fixed a lot of issues, now successfully runs the test with --enable-pedantic; refs #8

master
Marc Wäckerlin 11 years ago
parent 889a4bab15
commit b6e28189e7
  1. 6
      src/exec.cxx

@ -448,9 +448,9 @@ mrw::PartialExec& mrw::PartialExec::start(bool useInput)
_finish = !useInput; _finish = !useInput;
_input = ""; _input = "";
_res = _err = ""; _res = _err = "";
_stdIn = std::auto_ptr<mrw::Pipe>(new mrw::Pipe(mrw::Pipe::block_input)); _stdIn = std::shared_ptr<mrw::Pipe>(new mrw::Pipe(mrw::Pipe::block_input));
_stdOut = std::auto_ptr<mrw::Pipe>(new mrw::Pipe(mrw::Pipe::block_output)); _stdOut = std::shared_ptr<mrw::Pipe>(new mrw::Pipe(mrw::Pipe::block_output));
_stdErr = std::auto_ptr<mrw::Pipe>(new mrw::Pipe(mrw::Pipe::block_output)); _stdErr = std::shared_ptr<mrw::Pipe>(new mrw::Pipe(mrw::Pipe::block_output));
if (!*_stdIn || !*_stdOut || !*_stdErr) if (!*_stdIn || !*_stdOut || !*_stdErr)
throw mrw::ExecutionFailedExc("cannot create pipe", *_cmd); throw mrw::ExecutionFailedExc("cannot create pipe", *_cmd);
_lastPid = 0; _lastPid = 0;

Loading…
Cancel
Save