diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-05-17 17:09:18 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-05-17 17:09:18 +0300 |
commit | 49de98a30b8b5b45d30bcd4b8136a5b4cfe80fcd (patch) | |
tree | 459b3abe97d815dd40838be408998b3520ed9142 /src/gpg.c | |
parent | ebeb897b2b4f81224d541c6711b76e1c360e377a (diff) | |
download | wydawca-49de98a30b8b5b45d30bcd4b8136a5b4cfe80fcd.tar.gz wydawca-49de98a30b8b5b45d30bcd4b8136a5b4cfe80fcd.tar.bz2 |
Fix deadlock at wy_vlog
* src/stat.c: New file.
* src/wydawca.c (wy_log): Don't touch statistic counters. This causes
deadlock when wy_v?log is called from statistic-reporting module.
* src/wydawca.h (wydawca_stat_log): Remove proto.
* src/gpg.c: Increase WY_STAT_ERRORS explicitly.
* src/triplet.c: Likewise.
* src/verify.c: Likewise.
* tests/dry_run01.at: Fix expected output.
* tests/upload01.at: Likewise.
Diffstat (limited to 'src/gpg.c')
-rw-r--r-- | src/gpg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -121,9 +121,10 @@ static void remove_homedir(void) { wy_debug(2, (_("removing GNUPG home directory: %s"), temp_homedir)); - if (rmdir_r(temp_homedir)) + if (rmdir_r(temp_homedir)) { wy_log(LOG_CRIT, _("failed to remove GPG directory %s"), temp_homedir); + } } /* Create a temporary GPG home directory */ |