From c9f3aefcf795e534db5772a7401d38dfc7be7fa3 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 --- libisoburn/trunk/xorriso/xorriso.c | 4 +++- libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libisoburn/trunk/xorriso/xorriso.c b/libisoburn/trunk/xorriso/xorriso.c index c572fc72..75cb24ad 100644 --- a/libisoburn/trunk/xorriso/xorriso.c +++ b/libisoburn/trunk/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/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index fd716646..0f23bc99 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2008.06.27.130235" +#define Xorriso_timestamP "2008.07.03.133023"