SOURCES: gzip-raise-unblock.patch (NEW) - give raise() a chance (f...

qboosh qboosh at pld-linux.org
Thu Nov 30 18:54:26 CET 2006


Author: qboosh                       Date: Thu Nov 30 17:54:26 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- give raise() a chance (fixes abort() on SIGPIPE)

---- Files affected:
SOURCES:
   gzip-raise-unblock.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gzip-raise-unblock.patch
diff -u /dev/null SOURCES/gzip-raise-unblock.patch:1.1
--- /dev/null	Thu Nov 30 18:54:26 2006
+++ SOURCES/gzip-raise-unblock.patch	Thu Nov 30 18:54:21 2006
@@ -0,0 +1,19 @@
+Unblock signal before raising it in its own handler (needed with BSD
+signal semantics).
+
+--- gzip-1.3.6/gzip.c.orig	2006-11-30 00:34:53.292056000 +0100
++++ gzip-1.3.6/gzip.c	2006-11-30 18:29:19.736957250 +0100
+@@ -1851,8 +1851,13 @@
+ abort_gzip_signal (sig)
+      int sig;
+ {
++   sigset_t ss;
++
+    remove_output_file ();
+    signal (sig, SIG_DFL);
++   sigemptyset (&ss);
++   sigaddset (&ss, sig);
++   sigprocmask (SIG_UNBLOCK, &ss, NULL);
+    raise (sig);
+    abort ();
+ }
================================================================


More information about the pld-cvs-commit mailing list