Home Assistant Unofficial Reference
2024.12.1
process.py
Go to the documentation of this file.
1
"""Util to handle processes."""
2
3
from
__future__
import
annotations
4
5
import
subprocess
6
from
typing
import
Any
7
8
9
def
kill_subprocess
(process: subprocess.Popen[Any]) ->
None
:
10
"""Force kill a subprocess and wait for it to exit."""
11
process.kill()
12
process.communicate()
13
process.wait()
14
15
del process
homeassistant.util.process.kill_subprocess
None kill_subprocess(subprocess.Popen[Any] process)
Definition:
process.py:9
core
homeassistant
util
process.py
Generated by
1.9.1