Fixed output as-it-happens issue. Now displays output as it receives each newline.

This commit is contained in:
Zach Mullen 2009-09-04 11:23:38 -04:00
parent c6e5dd21fd
commit 7f9a0f508f

View File

@ -159,12 +159,16 @@ int cmProcess::CheckOutput(double timeout)
{ {
// Append to the stdout buffer. // Append to the stdout buffer.
this->StdOutBuffer.insert(this->StdOutBuffer.end(), data, data+length); this->StdOutBuffer.insert(this->StdOutBuffer.end(), data, data+length);
this->LastOutputPipe = pipe;
return pipe;
} }
else if(pipe == cmsysProcess_Pipe_STDERR) else if(pipe == cmsysProcess_Pipe_STDERR)
{ {
// Append to the stderr buffer. // Append to the stderr buffer.
this->StdErrorBuffer.insert(this->StdErrorBuffer.end(), this->StdErrorBuffer.insert(this->StdErrorBuffer.end(),
data, data+length); data, data+length);
this->LastOutputPipe = pipe;
return pipe;
} }
else if(pipe == cmsysProcess_Pipe_None) else if(pipe == cmsysProcess_Pipe_None)
{ {