mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-03 07:43:47 +08:00
Use close_fds for posix.
This commit is contained in:
1 parent
30d14ea016
commit
ccb460b433
1 file changed
+3
@@ -521,6 +521,9 @@ class GeneralizedPopen(subprocess.Popen):
|
||||
except AttributeError:
|
||||
CREATE_NO_WINDOW = 0x08000000
|
||||
kwargs['creationflags'] = CREATE_NO_WINDOW
|
||||
# The child process doesn't need file descriptors except 0, 1, 2.
|
||||
# This is unix only.
|
||||
kwargs['close_fds'] = 'posix' in sys.builtin_module_names
|
||||
super(GeneralizedPopen, self).__init__(*args, **kwargs)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user