mirror of
https://github.com/ARM-software/devlib.git
synced 2025-07-05 05:12:41 +01: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:
@ -170,7 +170,7 @@ class BackgroundCommand(ABC):
|
|||||||
:type signal: signal.Signals
|
:type signal: signal.Signals
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
self._send_signal(signal.SIGKILL)
|
self._send_signal(sig)
|
||||||
finally:
|
finally:
|
||||||
# Deregister if the command has finished
|
# Deregister if the command has finished
|
||||||
self.poll()
|
self.poll()
|
||||||
|
Reference in New Issue
Block a user