forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/8.0'
Conflicts: src/plugins/remotelinux/killappstep.cpp Change-Id: I4360e7d0f2c2ac258613933de81e8a9c40387379
This commit is contained in:
@@ -492,9 +492,9 @@ 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")
|
||||
const QString args = QString::fromLatin1("-%1 -%2")
|
||||
.arg(controlSignalToInt(controlSignal)).arg(pid);
|
||||
CommandLine command = { "kill", args, CommandLine::Raw };
|
||||
const CommandLine command = { "kill", args, CommandLine::Raw };
|
||||
// Note: This blocking call takes up to 2 ms for local remote.
|
||||
runInShell(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user