Documentation for eth_defi.utils.shutdown_hard function.
- shutdown_hard(process, log_level=None, block=True, block_timeout=30, check_port=None)
Kill Psutil process.
Straight out OS SIGKILL a process
Log output if necessary
Use port listening to check that the process goes down and frees its ports
process (psutil.Popen) – Process to kill
Block the execution until the process has terminated.
You must give check_port option to ensure we enforce the shutdown.
block_timeout – How long we give for process to clean up after itself
stdout, stderr as string
- Return type