On Tue, Oct 16, 2012 at 07:37:59 +0000, Oswald Buddenhagen wrote:
> commit 03bccd0e517e44a165c2f578b96e5ebecb263cee
> Author: Oswald Buddenhagen <[email protected]>
> Date:   Sat Sep 22 17:48:09 2012 +0200
> 
>     flush stdout more
>     
>     to make sure it is timely written and not interleaved with stderr even
>     when when redirected.
> 
>  src/drv_imap.c |    6 +++++-
>  src/socket.c   |    4 +++-
>  src/util.c     |    1 +
>  3 files changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/src/drv_imap.c b/src/drv_imap.c
> index bb069f8..50a3eb2 100644
> --- a/src/drv_imap.c
> +++ b/src/drv_imap.c
> @@ -250,6 +250,7 @@ send_imap_cmd( imap_store_t *ctx, struct imap_cmd *cmd )
>                       printf( ">>> %s", buf );
>               else
>                       printf( ">>> %d LOGIN <user> <pass>\n", cmd->tag );
> +             fflush( stdout );

Hi,

why not just use setlinebuf(stdout)?

Regards,
Tino

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to