Skip to content

Commit 72537a5

Browse files
Williangalvanipatrickelectric
authored andcommitted
Autopilot Manager: pass process pid as string when using 'kill'
1 parent 7af6764 commit 72537a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/services/ardupilot_manager/autopilot_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ async def prune_ardupilot_processes(self) -> None:
510510
logger.debug(f"Ardupilot appears to be running.. going to call pkill: {error}")
511511

512512
try:
513-
subprocess.run(["kill", "-9", process.pid], check=True)
513+
subprocess.run(["kill", "-9", f"{process.pid}"], check=True)
514514
except Exception as error:
515515
raise AutoPilotProcessKillFail(f"Failed to kill {process.name()}::{process.pid}.") from error
516516

0 commit comments

Comments
 (0)