From 56be985fe902a4af8c7f0bbe4541ef783ead827f Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Tue, 14 Aug 2007 09:48:39 +0200 Subject: [PATCH] Avoid calling signal(SIGPIPE, ..) for MinGW builds. SIGPIPE isn't supported in MinGW. Signed-off-by: Marius Storm-Olsen --- builtin-verify-tag.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin-verify-tag.c b/builtin-verify-tag.c index dfcfcd0455..5c1314d071 100644 --- a/builtin-verify-tag.c +++ b/builtin-verify-tag.c @@ -100,9 +100,11 @@ int cmd_verify_tag(int argc, const char **argv, const char *prefix) i++; } +#ifndef __MINGW32__ /* sometimes the program was terminated because this signal * was received in the process of writing the gpg input: */ signal(SIGPIPE, SIG_IGN); +#endif while (i < argc) if (verify_tag(argv[i++], verbose)) had_error = 1;