Actually kill old kernels upon restart.

This commit is contained in:
Brian E. Granger 2011-07-15 11:05:48 -07:00
parent ed3a348817
commit 861a481f29

View File

@ -142,7 +142,8 @@ class NotebookWebApplication(web.Application):
# TODO: This causes a hard crash in ZMQStream.close, which sets
# self.socket to None to hastily. We will need to fix this in PyZMQ
# itself. For now, we just leave the old kernel running :(
# self.kill_kernel(kernel_id)
# Maybe this is fixed now, but nothing was changed really.
self.kill_kernel(kernel_id)
self.log.debug("Kernel restarted: %s -> %s" % (kernel_id, new_kernel_id))
return new_kernel_id