diff options
author | Werner Koch <[email protected]> | 2005-07-22 16:28:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-07-22 16:28:40 +0000 |
commit | a486501c0b848b3de9bc355135f1ffec953e057f (patch) | |
tree | e5525626969c81afd367e72502f2830a229c3a97 /g10/status.c | |
parent | * options.h, g10.c (main), keyedit.c (keyedit_menu): Use --interactive (diff) | |
download | gnupg-a486501c0b848b3de9bc355135f1ffec953e057f.tar.gz gnupg-a486501c0b848b3de9bc355135f1ffec953e057f.zip |
* gpg.sgml (http):
* g10.c, options.h: New option --exit-on-status-write-error.
* status.c (write_status_text): Make use of this option.
Diffstat (limited to 'g10/status.c')
-rw-r--r-- | g10/status.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 |