Skip to content

Commit bcc22e2

Browse files
committed
Make ControlThread daemonic
1 parent 598c875 commit bcc22e2

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

ipykernel/control.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
class ControlThread(Thread):
1212

13-
def __init__(self, context):
14-
Thread.__init__(self)
15-
self.context = context
13+
def __init__(self, **kwargs):
14+
Thread.__init__(self, **kwargs)
1615
self.io_loop = IOLoop(make_current=False)
1716

1817
def run(self):

ipykernel/kernelapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def init_control(self, context):
300300
# see ipython/ipykernel#270 and zeromq/libzmq#2892
301301
self.control_socket.router_handover = 1
302302

303-
self.control_thread = ControlThread(self.control_socket)
303+
self.control_thread = ControlThread(daemon=True)
304304
self.control_thread.start()
305305

306306
def init_iopub(self, context):

0 commit comments

Comments
 (0)