[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unconditional SIGPIPE usage in gzip 1.6
From: |
Paul Eggert |
Subject: |
Re: unconditional SIGPIPE usage in gzip 1.6 |
Date: |
Tue, 11 Jun 2013 17:56:19 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
On 06/11/2013 12:09 PM, Bdale Garbee wrote:
> might have been on a
> Hurd or BSD system, I don't recall offhand.
Those both have SIGPIPE, so it must have been something else.
I'm a bit curious about what it'd be, though, since as far
as I know only MSVC and mingw lack SIGPIPE. Anyway, I
pushed this patch -- it avoids polluting the mainline
code with #ifdefs. Thanks.
>From fdbf887ff474c5eaab314eba7de37cf177219587 Mon Sep 17 00:00:00 2001
From: Paul Eggert <address@hidden>
Date: Tue, 11 Jun 2013 17:53:53 -0700
Subject: [PATCH] maint: port to platforms lacking SIGPIPE
* tailor.h (SIGPIPE): Define to 0 if not defined. This fixes a
porting bug introduced as part of 2012-11-16 syntax-check cleanup.
Problem reported by Bdale Garbee in
<http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00006.html>.
---
tailor.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tailor.h b/tailor.h
index 0bf88ff..e563b66 100644
--- a/tailor.h
+++ b/tailor.h
@@ -219,6 +219,10 @@
# define OS_CODE 0x0a
#endif
+#ifndef SIGPIPE
+# define SIGPIPE 0
+#endif
+
/* Common defaults */
--
1.7.11.7