portmap-4.0-sigpipe.patch 353 B

123456789101112
  1. --- portmap_4/portmap.c.sigpipe Sun Feb 11 17:45:11 2001
  2. +++ portmap_4/portmap.c Sun Feb 11 17:45:51 2001
  3. @@ -228,6 +228,9 @@
  4. #else
  5. (void)signal(SIGCHLD, reap);
  6. #endif
  7. + /* Dying on SIGPIPE doesn't help anyone */
  8. + (void)signal(SIGPIPE, SIG_IGN);
  9. +
  10. svc_run();
  11. syslog(LOG_ERR, "run_svc returned unexpectedly");
  12. abort();