Skip to content

Commit 5922711

Browse files
authored
Ensure go2rtc server starts using posix_spawn/vfork (#129196)
1 parent 9b0975b commit 5922711

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

homeassistant/components/go2rtc/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ async def start(self) -> None:
6262
config_file,
6363
stdout=asyncio.subprocess.PIPE,
6464
stderr=asyncio.subprocess.STDOUT,
65+
close_fds=False, # required for posix_spawn on CPython < 3.13
6566
)
6667

6768
self._hass.async_create_background_task(

tests/components/go2rtc/test_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ async def test_server_run_success(
6767
"test.yaml",
6868
stdout=subprocess.PIPE,
6969
stderr=subprocess.STDOUT,
70+
close_fds=False,
7071
)
7172

7273
# Verify that the config file was written

0 commit comments

Comments
 (0)