From ea368858296ed8dca1a0aa104511a84d84f1c754 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 3 Jul 2008 13:29:44 +0000 Subject: [PATCH] Flushing stdout after each result text to deconfuse stdout/stderr with SSH --- xorriso/xorriso.c | 4 +++- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xorriso/xorriso.c b/xorriso/xorriso.c index c572fc72..75cb24ad 100644 --- a/xorriso/xorriso.c +++ b/xorriso/xorriso.c @@ -765,8 +765,10 @@ bit15= with bit1 or bit2: close depicted log file if(flag&(2|4)) return(1); if(flag&1) { - if(channel_no==1 || channel_no==3) + if(channel_no==1 || channel_no==3) { printf("%s",text); + fflush(stdout); + } if(channel_no==2 || channel_no==3) fprintf(stderr,"%s",text); if(logfile_fp[channel_no]!=NULL) { diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index fd716646..0f23bc99 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2008.06.27.130235" +#define Xorriso_timestamP "2008.07.03.133023"