mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge branch 'develop' of github.com:saltstack/salt into hotfix/gdb-resources
This commit is contained in:
commit
3b0388c8f4
@ -696,10 +696,11 @@ class ShellCase(TestCase):
|
||||
if not sys.platform.lower().startswith('win'):
|
||||
popen_kwargs['close_fds'] = True
|
||||
|
||||
def detach_signals_to_parent():
|
||||
os.setsid()
|
||||
def detach_from_parent_group():
|
||||
# dettach from parent group (no more inherited signals!)
|
||||
os.setpgrp()
|
||||
|
||||
popen_kwargs['preexec_fn'] = detach_signals_to_parent
|
||||
popen_kwargs['preexec_fn'] = detach_from_parent_group
|
||||
|
||||
process = Popen(cmd, **popen_kwargs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user