1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

connection/bg_cmd: fix missing use of signal

The signal parameter was being ignored and instead always sending
the KILL signal instead.
This commit is contained in:
Marc Bonnici 2023-05-16 17:07:37 -05:00
parent 7e2399055b
commit e6323fc8bf

View File

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