summaryrefslogtreecommitdiffstats
path: root/package/portmap/portmap-4.0-sigpipe.patch
blob: dba7cf4bb15caad1163bbfaedb8b14bc127de5c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
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();