From e6323fc8bf86d59edc78414c0fe1c48ba338b161 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 16 May 2023 17:07:37 -0500 Subject: [PATCH] connection/bg_cmd: fix missing use of signal The signal parameter was being ignored and instead always sending the KILL signal instead. --- devlib/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/connection.py b/devlib/connection.py index 2a5aabf..dbc41f0 100644 --- a/devlib/connection.py +++ b/devlib/connection.py @@ -170,7 +170,7 @@ class BackgroundCommand(ABC): :type signal: signal.Signals """ try: - self._send_signal(signal.SIGKILL) + self._send_signal(sig) finally: # Deregister if the command has finished self.poll()