mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Optimize subprocess performance with close_fds=False (#10145)
This commit is contained in:
@@ -31,7 +31,11 @@ def run_format(executable, args, queue, lock, failed_files):
|
||||
invocation.append(path)
|
||||
|
||||
proc = subprocess.run(
|
||||
invocation, capture_output=True, encoding="utf-8", check=False
|
||||
invocation,
|
||||
capture_output=True,
|
||||
encoding="utf-8",
|
||||
check=False,
|
||||
close_fds=False,
|
||||
)
|
||||
if proc.returncode != 0:
|
||||
with lock:
|
||||
|
Reference in New Issue
Block a user