Avoid calling signal(SIGPIPE, ..) for MinGW builds.

SIGPIPE isn't supported in MinGW.

Signed-off-by: Marius Storm-Olsen <mstormo_git@storm-olsen.com>
This commit is contained in:
Marius Storm-Olsen
2007-08-14 09:48:39 +02:00
parent 88d775162b
commit 56be985fe9

View File

@@ -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;