We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe273b8 commit ecbdfadCopy full SHA for ecbdfad
sio/workers/executors.py
@@ -79,6 +79,7 @@ def execute_command(
79
real_time_limit=None,
80
ignore_errors=False,
81
extra_ignore_errors=(),
82
+ pass_fds=(),
83
**kwargs
84
):
85
"""Utility function to run arbitrary command.
@@ -111,6 +112,9 @@ def execute_command(
111
112
113
``stdout``
114
Only when ``capture_output=True``: output of the command
115
+
116
+ ``pass_fds``
117
+ Extra file descriptors to pass to the command.
118
"""
119
# Using temporary file is way faster than using subproces.PIPE
120
# and it prevents deadlocks.
@@ -141,6 +145,7 @@ def execute_command(
141
145
env=env,
142
146
cwd=tempcwd(),
143
147
preexec_fn=os.setpgrp,
148
+ pass_fds=pass_fds,
144
149
)
150
151
kill_timer = None
0 commit comments