Flushing stdout after each result text to deconfuse stdout/stderr with SSH

This commit is contained in:
Thomas Schmitt 2008-07-03 13:29:44 +00:00
parent 40d9dcf8bb
commit ea36885829
2 changed files with 4 additions and 2 deletions

View File

@ -765,8 +765,10 @@ bit15= with bit1 or bit2: close depicted log file
if(flag&(2|4)) if(flag&(2|4))
return(1); return(1);
if(flag&1) { if(flag&1) {
if(channel_no==1 || channel_no==3) if(channel_no==1 || channel_no==3) {
printf("%s",text); printf("%s",text);
fflush(stdout);
}
if(channel_no==2 || channel_no==3) if(channel_no==2 || channel_no==3)
fprintf(stderr,"%s",text); fprintf(stderr,"%s",text);
if(logfile_fp[channel_no]!=NULL) { if(logfile_fp[channel_no]!=NULL) {

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.06.27.130235" #define Xorriso_timestamP "2008.07.03.133023"