[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] maint: port to platforms lacking SIGPIPE
From: |
Paul Eggert |
Subject: |
[PATCH 2/5] maint: port to platforms lacking SIGPIPE |
Date: |
Fri, 16 Nov 2012 13:48:45 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 |
* gzip.c (SIGPIPE): Define to 0 if not already defined.
---
gzip.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gzip.c b/gzip.c
index 35b3603..d89bc24 100644
--- a/gzip.c
+++ b/gzip.c
@@ -121,6 +121,10 @@ static char const *const license_msg[] = {
#define OFF_T_MAX (~ (off_t) 0 - OFF_T_MIN)
#endif
+#ifndef SIGPIPE
+# define SIGPIPE 0
+#endif
+
/* Use SA_NOCLDSTOP as a proxy for whether the sigaction machinery is
present. */
#ifndef SA_NOCLDSTOP
@@ -222,7 +226,9 @@ static int handled_sig[] =
#ifdef SIGHUP
, SIGHUP
#endif
+#if SIGPIPE
, SIGPIPE
+#endif
#ifdef SIGTERM
, SIGTERM
#endif
--
1.7.11.7
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 2/5] maint: port to platforms lacking SIGPIPE,
Paul Eggert <=