From 36f3abbfc78af3352fc850e373a3f79ead99ab4d Mon Sep 17 00:00:00 2001 From: Will Starms Date: Thu, 28 Jul 2016 13:04:55 -0500 Subject: [PATCH 1/2] Proxy will no longer recieve Hub's SIGINT #665 --- jupyterhub/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/app.py b/jupyterhub/app.py index 79c5c3ec..b121c265 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -1026,7 +1026,7 @@ class JupyterHub(Application): self.log.info("Starting proxy @ %s", self.proxy.public_server.bind_url) self.log.debug("Proxy cmd: %s", cmd) try: - self.proxy_process = Popen(cmd, env=env) + self.proxy_process = Popen(cmd, env=env, preexec_fn=os.setpgrp) except FileNotFoundError as e: self.log.error( "Failed to find proxy %r\n" From 0cb777cd0f7e35d141a7937df27f66a9827de53a Mon Sep 17 00:00:00 2001 From: Will Starms Date: Fri, 29 Jul 2016 13:43:09 -0500 Subject: [PATCH 2/2] Switch to start_new_sesstion --- jupyterhub/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/app.py b/jupyterhub/app.py index b121c265..f4645954 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -1026,7 +1026,7 @@ class JupyterHub(Application): self.log.info("Starting proxy @ %s", self.proxy.public_server.bind_url) self.log.debug("Proxy cmd: %s", cmd) try: - self.proxy_process = Popen(cmd, env=env, preexec_fn=os.setpgrp) + self.proxy_process = Popen(cmd, env=env, start_new_session=True) except FileNotFoundError as e: self.log.error( "Failed to find proxy %r\n"