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()