Skip to content

Commit

Permalink
Do not reuse zmq context if we want to support fork()
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed May 28, 2019
1 parent b81632e commit a5cff52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipykernel/kernelapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def init_connection_file(self):
def init_sockets(self):
# Create a context, a session, and the kernel sockets.
self.log.info("Starting the kernel at pid: %i", os.getpid())
context = zmq.Context.instance()
context = zmq.Context()
# Uncomment this to try closing the context.
# atexit.register(context.term)

Expand Down

0 comments on commit a5cff52

Please sign in to comment.