mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
target: Use busybox implementation of kill
For greater portability ensure that we use the busybox implementation for all kill commands.
This commit is contained in:
parent
b5cd5358ab
commit
676336a72a
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user