diff options
Diffstat (limited to '')
-rw-r--r-- | gpgme/rungpg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c index c81a89aa..e437ba88 100644 --- a/gpgme/rungpg.c +++ b/gpgme/rungpg.c @@ -524,10 +524,12 @@ _gpgme_gpg_spawn( GpgObject gpg, void *opaque ) } /* We normally don't want all the normal output */ if ( !duped_stderr ) { - if ( dup2 ( fd, 2 ) == -1 ) { - fprintf (stderr,"dup2(dev/null, 2) failed: %s\n", - strerror (errno) ); - _exit (8); + if (!getenv ("GPGME_DEBUG") ) { + if ( dup2 ( fd, 2 ) == -1 ) { + fprintf (stderr,"dup2(dev/null, 2) failed: %s\n", + strerror (errno) ); + _exit (8); + } } } close (fd); |