Skip to content

Commit a5cff52

Browse files
Do not reuse zmq context if we want to support fork()
1 parent b81632e commit a5cff52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipykernel/kernelapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def init_connection_file(self):
229229
def init_sockets(self):
230230
# Create a context, a session, and the kernel sockets.
231231
self.log.info("Starting the kernel at pid: %i", os.getpid())
232-
context = zmq.Context.instance()
232+
context = zmq.Context()
233233
# Uncomment this to try closing the context.
234234
# atexit.register(context.term)
235235

0 commit comments

Comments
 (0)