summaryrefslogtreecommitdiffstats
path: root/package/portmap/portmap-4.0-sigpipe.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/portmap/portmap-4.0-sigpipe.patch')
-rw-r--r--package/portmap/portmap-4.0-sigpipe.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/portmap/portmap-4.0-sigpipe.patch b/package/portmap/portmap-4.0-sigpipe.patch
new file mode 100644
index 000000000..dba7cf4bb
--- /dev/null
+++ b/package/portmap/portmap-4.0-sigpipe.patch
@@ -0,0 +1,12 @@
+--- portmap_4/portmap.c.sigpipe Sun Feb 11 17:45:11 2001
++++ portmap_4/portmap.c Sun Feb 11 17:45:51 2001
+@@ -228,6 +228,9 @@
+ #else
+ (void)signal(SIGCHLD, reap);
+ #endif
++ /* Dying on SIGPIPE doesn't help anyone */
++ (void)signal(SIGPIPE, SIG_IGN);
++
+ svc_run();
+ syslog(LOG_ERR, "run_svc returned unexpectedly");
+ abort();