From 676336a72a10391f7717c3e524e5ede304c2d9e6 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 26 Jul 2021 13:57:44 +0100 Subject: [PATCH] target: Use busybox implementation of `kill` For greater portability ensure that we use the busybox implementation for all kill commands. --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index 1491e6a..9e5aba4 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -759,7 +759,7 @@ class Target(object): def kill(self, pid, signal=None, as_root=False): signal_string = '-s {}'.format(signal) if signal else '' - self.execute('kill {} {}'.format(signal_string, pid), as_root=as_root) + self.execute('{} kill {} {}'.format(self.busybox, signal_string, pid), as_root=as_root) def killall(self, process_name, signal=None, as_root=False): for pid in self.get_pids_of(process_name):