##// END OF EJS Templates
Kernel event loop is robust against random SIGINT.
Thomas Kluyver -
Show More
@@ -167,8 +167,12 b' class Kernel(Configurable):'
167 """ Start the kernel main loop.
167 """ Start the kernel main loop.
168 """
168 """
169 while True:
169 while True:
170 try:
170 time.sleep(self._poll_interval)
171 time.sleep(self._poll_interval)
171 self.do_one_iteration()
172 self.do_one_iteration()
173 except KeyboardInterrupt:
174 # Ctrl-C shouldn't crash the kernel
175 continue
172
176
173 def record_ports(self, xrep_port, pub_port, req_port, hb_port):
177 def record_ports(self, xrep_port, pub_port, req_port, hb_port):
174 """Record the ports that this kernel is using.
178 """Record the ports that this kernel is using.
General Comments 0
You need to be logged in to leave comments. Login now