Skip to content

Commit f59bb79

Browse files
committed
Use process group for more stable hung process cleanup
1 parent b0b3fb4 commit f59bb79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/Python/mccodelib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def run_subtool_noread(cmd, cwd=None, timeout=None):
787787
preexec_fn = None
788788
else:
789789
creationflags = 0
790-
preexec_fn = os.setsid # start new session -> new process group
790+
preexec_fn = os.setpgrp # start new session -> new process group
791791

792792
try:
793793
process = subprocess.Popen(

0 commit comments

Comments
 (0)