Merge branch 'jc/drop-git-spec-in'
[gitweb.git] / gpg-interface.c
index 3dc2fe397e32d79713780596f0ef4666c14b5955..22599382365eb564cdfc22b434cb60796e06b82f 100644 (file)
@@ -237,6 +237,7 @@ int verify_signed_buffer(const char *payload, size_t payload_size,
                return error(_("could not run gpg."));
        }
 
+       sigchain_push(SIGPIPE, SIG_IGN);
        write_in_full(gpg.in, payload, payload_size);
        close(gpg.in);
 
@@ -250,6 +251,7 @@ int verify_signed_buffer(const char *payload, size_t payload_size,
        close(gpg.out);
 
        ret = finish_command(&gpg);
+       sigchain_pop(SIGPIPE);
 
        unlink_or_warn(path);