We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9550ac2 commit 2113498Copy full SHA for 2113498
1 file changed
src/robot/libraries/Process.py
@@ -994,16 +994,12 @@ def popen_config(self):
994
'shell': self.shell,
995
'cwd': self.cwd,
996
'env': self.env}
997
- # Close file descriptors regardless the Python version:
998
- # https://github.com/robotframework/robotframework/issues/2794
999
- if not WINDOWS:
1000
- config['close_fds'] = True
1001
self._add_process_group_config(config)
1002
return config
1003
1004
def _add_process_group_config(self, config):
1005
if hasattr(os, 'setsid'):
1006
- config['preexec_fn'] = os.setsid
+ config['start_new_session'] = True
1007
if hasattr(subprocess, 'CREATE_NEW_PROCESS_GROUP'):
1008
config['creationflags'] = subprocess.CREATE_NEW_PROCESS_GROUP
1009
0 commit comments