Ensure go2rtc server starts using posix_spawn/vfork (#129196)

This commit is contained in:
J. Nick Koston 2024-10-25 18:51:29 -10:00 committed by GitHub
parent 9b0975b2ac
commit 59227116f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class Server:
config_file,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.STDOUT,
close_fds=False, # required for posix_spawn on CPython < 3.13
)
self._hass.async_create_background_task(

View File

@ -67,6 +67,7 @@ async def test_server_run_success(
"test.yaml",
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
close_fds=False,
)
# Verify that the config file was written