##// 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 167 """ Start the kernel main loop.
168 168 """
169 169 while True:
170 try:
170 171 time.sleep(self._poll_interval)
171 172 self.do_one_iteration()
173 except KeyboardInterrupt:
174 # Ctrl-C shouldn't crash the kernel
175 continue
172 176
173 177 def record_ports(self, xrep_port, pub_port, req_port, hb_port):
174 178 """Record the ports that this kernel is using.
General Comments 0
You need to be logged in to leave comments. Login now