1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-05 18:30:50 +01:00

connection: Use -- in kill command

Separate options and PGIDS with -- in kill commands as otherwise, kill
seems to be confused.
This commit is contained in:
Douglas Raillard 2022-02-02 11:05:56 +00:00 committed by Marc Bonnici
parent bdb04aa8d0
commit 2b38548463

View File

@ -36,7 +36,7 @@ _KILL_TIMEOUT = 3
def _kill_pgid_cmd(pgid, sig, busybox):
return '{} kill -{} -{}'.format(busybox, sig.value, pgid)
return '{} kill -{} -- -{}'.format(busybox, sig.value, pgid)
def _popen_communicate(bg, popen, input, timeout):
try: