forked from qt-creator/qt-creator
Merge "Merge remote-tracking branch 'origin/8.0'"
This commit is contained in:
@@ -1353,7 +1353,7 @@ CMakeBuildConfiguration::CMakeBuildConfiguration(Target *target, Id id)
|
||||
if (info.buildDirectory.isEmpty()) {
|
||||
setBuildDirectory(shadowBuildDirectory(target->project()->projectFilePath(),
|
||||
k,
|
||||
info.displayName,
|
||||
info.typeName,
|
||||
info.buildType));
|
||||
}
|
||||
|
||||
|
@@ -113,7 +113,7 @@ public:
|
||||
Target * const theTarget = target();
|
||||
QTC_ASSERT(theTarget, return CheckResult::failure());
|
||||
RunConfiguration * const rc = theTarget->activeRunConfiguration();
|
||||
const QString remoteExe = rc ? rc->runnable().command.executable().toString() : QString();
|
||||
const QString remoteExe = rc ? rc->runnable().command.executable().path() : QString();
|
||||
service->setRemoteExecutable(remoteExe);
|
||||
return CheckResult::success();
|
||||
});
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -24,7 +24,7 @@ RemoteLinuxSignalOperation::~RemoteLinuxSignalOperation() = default;
|
||||
|
||||
static QString signalProcessGroupByPidCommandLine(qint64 pid, int signal)
|
||||
{
|
||||
return QString::fromLatin1("kill -%1 %2").arg(signal).arg(pid);
|
||||
return QString::fromLatin1("kill -%1 -%2").arg(signal).arg(pid);
|
||||
}
|
||||
|
||||
void RemoteLinuxSignalOperation::run(const QString &command)
|
||||
|
Reference in New Issue
Block a user