mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 13:22:11 +00:00
Fix bug where process jam log could not find
command status when max buffer not size not unlimited and buffer full. Change character before buffer null terminator to be a newline so command status appears on its own line. [SVN r79184]
This commit is contained in:
@@ -335,6 +335,14 @@ static int read_descriptor( int i, int s )
|
||||
}
|
||||
}
|
||||
|
||||
/* If buffer full, ensure last buffer char is newline
|
||||
* so process jam log finds command status at beginning
|
||||
* of it own line, not appended to end of buffer output.
|
||||
*/
|
||||
if ( globs.max_buf && cmdtab[i].buf_size[s] == globs.max_buf ) {
|
||||
cmdtab[i].buffer[s][cmdtab[i].buf_size[s]-2] = '\n';
|
||||
}
|
||||
|
||||
return feof( cmdtab[ i ].stream[ s ] );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user