Skip to content

Ignore SIGPIPE to avoid crash on broken connections

Nicki Křížek requested to merge ignore-sigpipe into master

Newer versions of dnsjit no longer ignore all signals sent to the process. We need to ensure that SIGPIPE caused by a single broken connection won't cause shotgun to end abruptly.

Related https://github.com/DNS-OARC/dnsjit/issues/234


To test

  • compile with development version of dnsjit
  • ./replay.py ...
  • send kill -SIGPIPE to the dnsjit process
  • without this change, shotgun will crash with ERROR Broken pipe (signum 13)

Merge request reports