Skip to content

Commit

Permalink
Make Popen process its own group leader
Browse files Browse the repository at this point in the history
Otherwise, when running in Jupyter on Mac, the ipykernel will have the
same group ID, and will be killed when the Popen process's group ID is
killed. Fixes Parsl/parsl#212.
  • Loading branch information
annawoodard committed Apr 18, 2018
1 parent 12fbcbe commit da987d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libsubmit/channels/local/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def execute_no_wait(self, cmd, walltime, envs={}):
stderr=subprocess.PIPE,
cwd=self.userhome,
env=current_env,
shell=True
shell=True,
preexec_fn=os.setpgrp
)
pid = proc.pid

Expand Down

0 comments on commit da987d5

Please sign in to comment.