Merge branch 'develop' of github.com:saltstack/salt into hotfix/gdb-resources

This commit is contained in:
Pedro Algarvio 2012-12-03 23:42:23 +00:00
commit 3b0388c8f4

View File

@ -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)