diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/estream.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/estream.c b/src/estream.c index 301a078..24e82d8 100644 --- a/src/estream.c +++ b/src/estream.c @@ -4578,9 +4578,12 @@ _gpgrt_fflush (estream_t stream, int in_atexit) for (item = estream_list; item; item = item->next) if (item->stream) { + if (in_atexit && !item->stream->flags.writing) + /* Skip read-only stream */ + continue; + /* The code below does not work - we need to think more about * atexit handlers and stream locking. */ - (void)in_atexit; /* if (in_atexit) */ /* { */ /* /\* Do not flush if we can't take the lock while we are */ |
