Browse Source

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

Shane Kerr 14 years ago
parent
commit
45d4be15f1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/bin/bind10/bind10.py.in

+ 3 - 0
src/bin/bind10/bind10.py.in

@@ -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,