mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Ensure go2rtc server starts using posix_spawn/vfork (#129196)
This commit is contained in:
parent
9b0975b2ac
commit
59227116f3
@ -62,6 +62,7 @@ class Server:
|
|||||||
config_file,
|
config_file,
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.STDOUT,
|
stderr=asyncio.subprocess.STDOUT,
|
||||||
|
close_fds=False, # required for posix_spawn on CPython < 3.13
|
||||||
)
|
)
|
||||||
|
|
||||||
self._hass.async_create_background_task(
|
self._hass.async_create_background_task(
|
||||||
|
@ -67,6 +67,7 @@ async def test_server_run_success(
|
|||||||
"test.yaml",
|
"test.yaml",
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
|
close_fds=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Verify that the config file was written
|
# Verify that the config file was written
|
||||||
|
Loading…
x
Reference in New Issue
Block a user