@@ -251,7 +251,6 @@ def _stderr_loop(self) -> None:
251251def create_transport (config : TransportConfig , cwd : Optional [str ],
252252 callback_object : TransportCallbacks ) -> Transport [Dict [str , Any ]]:
253253 stderr = subprocess .PIPE
254- pass_fds = () # type: Union[Tuple[()], Tuple[int]]
255254 if config .tcp_port is not None :
256255 assert config .tcp_port is not None
257256 if config .tcp_port < 0 :
@@ -263,7 +262,6 @@ def create_transport(config: TransportConfig, cwd: Optional[str],
263262 stdout = subprocess .PIPE
264263 stdin = subprocess .DEVNULL
265264 stderr = subprocess .STDOUT
266- pass_fds = (config .node_ipc .child_connection .fileno (),)
267265 else :
268266 stdout = subprocess .PIPE
269267 stdin = subprocess .PIPE
@@ -273,7 +271,7 @@ def create_transport(config: TransportConfig, cwd: Optional[str],
273271 process = None # type: Optional[subprocess.Popen]
274272
275273 def start_subprocess () -> subprocess .Popen :
276- return _start_subprocess (config .command , stdin , stdout , stderr , startupinfo , config .env , cwd , pass_fds )
274+ return _start_subprocess (config .command , stdin , stdout , stderr , startupinfo , config .env , cwd )
277275
278276 if config .listener_socket :
279277 assert isinstance (config .tcp_port , int ) and config .tcp_port > 0
@@ -355,8 +353,7 @@ def _start_subprocess(
355353 stderr : int ,
356354 startupinfo : Any ,
357355 env : Dict [str , str ],
358- cwd : Optional [str ],
359- pass_fds : Union [Tuple [()], Tuple [int ]]
356+ cwd : Optional [str ]
360357) -> subprocess .Popen :
361358 debug ("starting {} in {}" .format (args , cwd if cwd else os .getcwd ()))
362359 process = subprocess .Popen (
@@ -367,7 +364,7 @@ def _start_subprocess(
367364 startupinfo = startupinfo ,
368365 env = env ,
369366 cwd = cwd ,
370- pass_fds = pass_fds )
367+ close_fds = False )
371368 _subprocesses .add (process )
372369 return process
373370
0 commit comments