From bc9478c324d44e1da81b7c8a5852448035ccaa2f Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 6 Jul 2020 16:51:02 +0100 Subject: [PATCH] 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. --- devlib/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/connection.py b/devlib/connection.py index e6d67c0..2fce4ce 100644 --- a/devlib/connection.py +++ b/devlib/connection.py @@ -27,7 +27,7 @@ _KILL_TIMEOUT = 3 def _kill_pgid_cmd(pgid, sig): - return 'kill -{} -{}'.format(sig.name, pgid) + return 'kill -{} -{}'.format(sig.value, pgid) class ConnectionBase(InitCheckpoint):