Switch to start_new_sesstion

This commit is contained in:
Will Starms
2016-07-29 13:43:09 -05:00
parent 36f3abbfc7
commit 0cb777cd0f

View File

@@ -1026,7 +1026,7 @@ class JupyterHub(Application):
self.log.info("Starting proxy @ %s", self.proxy.public_server.bind_url) self.log.info("Starting proxy @ %s", self.proxy.public_server.bind_url)
self.log.debug("Proxy cmd: %s", cmd) self.log.debug("Proxy cmd: %s", cmd)
try: 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: except FileNotFoundError as e:
self.log.error( self.log.error(
"Failed to find proxy %r\n" "Failed to find proxy %r\n"