mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
connection/send_signal: Use signal value instead of name
Some targets do not support killing via signal name so use the signal number for greater compatibility.
This commit is contained in:
parent
9a2c413372
commit
bc9478c324
@ -27,7 +27,7 @@ _KILL_TIMEOUT = 3
|
|||||||
|
|
||||||
|
|
||||||
def _kill_pgid_cmd(pgid, sig):
|
def _kill_pgid_cmd(pgid, sig):
|
||||||
return 'kill -{} -{}'.format(sig.name, pgid)
|
return 'kill -{} -{}'.format(sig.value, pgid)
|
||||||
|
|
||||||
|
|
||||||
class ConnectionBase(InitCheckpoint):
|
class ConnectionBase(InitCheckpoint):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user