From 49ddf8434f016de38b224dc5f7fcbfaed520e200 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 11 May 2022 12:21:13 +0200 Subject: [PATCH] LinuxProcessInterface: Fix kill command Amends f62a4d631553d3ca848ef15a7f9c378dd7d0e31d Change-Id: Ib4efa3e0b9e0f4f945e338a85463b3e26fd056a1 Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/linuxdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/remotelinux/linuxdevice.cpp b/src/plugins/remotelinux/linuxdevice.cpp index ae27e748cb3..f49c6c968b2 100644 --- a/src/plugins/remotelinux/linuxdevice.cpp +++ b/src/plugins/remotelinux/linuxdevice.cpp @@ -566,7 +566,7 @@ void LinuxProcessInterface::sendControlSignal(ControlSignal controlSignal) QTC_ASSERT(controlSignal != ControlSignal::KickOff, return); const qint64 pid = processId(); QTC_ASSERT(pid, return); // TODO: try sending a signal based on process name - const QString args = QString::fromLatin1("-%1 -%2 %2") + const QString args = QString::fromLatin1("-%1 %2") .arg(controlSignalToInt(controlSignal)).arg(pid); CommandLine command = { "kill", args, CommandLine::Raw }; // Note: This blocking call takes up to 2 ms for local remote.