i18n: remote: allow translations to reorder message
[gitweb.git] / gpg-interface.c
index 20612fe5017837575e80005844486327e9e3e699..c4b1e8c78d396194753d8a7287678bc476f858d6 100644 (file)
@@ -235,6 +235,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);
 
@@ -248,6 +249,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);