Commit 45d4be15 authored by Shane Kerr's avatar Shane Kerr
Browse files

Block SIGPIPE signals. We had a command channel message cause

the process to die due to this problem.

Full details can be found in the ticket:

https://bind10.isc.org/ticket/367

Patch reviewed by Michal in Jabber.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@3190 e5f2f494-b856-4b98-b285-d166d9295462
parent 98691c42
...@@ -710,6 +710,9 @@ def main(): ...@@ -710,6 +710,9 @@ def main():
signal.signal(signal.SIGINT, fatal_signal) signal.signal(signal.SIGINT, fatal_signal)
signal.signal(signal.SIGTERM, fatal_signal) signal.signal(signal.SIGTERM, fatal_signal)
# Block SIGPIPE, as we don't want it to end this process
signal.signal(signal.SIGPIPE, signal.SIG_IGN)
# Go bob! # Go bob!
boss_of_bind = BoB(options.msgq_socket_file, int(options.auth_port), boss_of_bind = BoB(options.msgq_socket_file, int(options.auth_port),
options.address, options.nocache, options.verbose, options.address, options.nocache, options.verbose,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment