Unverified Commit 53c0fa1e authored by Harry Mellor's avatar Harry Mellor Committed by GitHub
Browse files

Ensure that `pid` passed to `kill_process_tree` is `int` for `mypy` (#17051)


Signed-off-by: default avatarHarry Mellor <19981378+hmellor@users.noreply.github.com>
parent f7912cba
......@@ -134,8 +134,8 @@ def shutdown(proc: Process, input_path: str, output_path: str):
proc.terminate()
proc.join(5)
if proc.is_alive():
kill_process_tree(proc.pid)
if proc.is_alive() and (pid := proc.pid) is not None:
kill_process_tree(pid)
# Remove zmq ipc socket files.
ipc_sockets = [output_path, input_path]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment