+2
-1
lines changedFilter options
+2
-1
lines changed Original file line number Diff line number Diff line change
@@ -66,6 +66,7 @@ def __init__(
66
66
self.start_error_message = start_error_message or ""
67
67
# Default value for every python subprocess: subprocess.Popen(..., creationflags=0)
68
68
self.creation_flags = kwargs.pop("creation_flags", 0)
69
+
self.close_fds = kwargs.pop("close_fds") or system() != "Windows"
69
70
self.env = env or os.environ
70
71
71
72
@property
@@ -201,7 +202,7 @@ def _start_process(self, path: str) -> None:
201
202
self.process = subprocess.Popen(
202
203
cmd,
203
204
env=self.env,
204
-
close_fds=system() != "Windows",
205
+
close_fds=self.close_fds,
205
206
stdout=self.log_file,
206
207
stderr=self.log_file,
207
208
stdin=PIPE,
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4