From a486501c0b848b3de9bc355135f1ffec953e057f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 22 Jul 2005 16:28:40 +0000 Subject: * gpg.sgml (http): * g10.c, options.h: New option --exit-on-status-write-error. * status.c (write_status_text): Make use of this option. --- g10/status.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'g10/status.c') diff --git a/g10/status.c b/g10/status.c index b14d605da..6ef5e7eec 100644 --- a/g10/status.c +++ b/g10/status.c @@ -263,7 +263,8 @@ write_status_text ( int no, const char *text) } } putc ('\n',statusfp); - fflush (statusfp); + if ( fflush (statusfp) && opt.exit_on_status_write_error ) + g10_exit (0); } @@ -327,7 +328,8 @@ write_status_text_and_buffer ( int no, const char *string, } while ( len ); putc ('\n',statusfp); - fflush (statusfp); + if ( fflush (statusfp) && opt.exit_on_status_write_error ) + g10_exit (0); } void -- cgit