fixed a lot of issues, now successfully runs the test with --enable-pedantic; refs #8
This commit is contained in:
		@@ -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;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user