Commit 24a98fea authored by ck's avatar ck
Browse files

Maemo: Refine pkill command line.

Reviewed-by: kh1
parent d8ada46f
......@@ -1427,8 +1427,8 @@ void MaemoRunControl::stop()
} else {
stopProcess.kill();
QStringList cmdArgs;
const QString remoteCall = QString::fromLocal8Bit("pkill -f %1; "
"sleep 1; pkill -9 -f %1").arg(executableFileName());
const QString remoteCall = QString::fromLocal8Bit("pkill -x %1; "
"sleep 1; pkill -x -9 %1").arg(executableFileName());
cmdArgs << "-n" << "-p" << port() << "-l" << runConfig->remoteUserName()
<< runConfig->remoteHostName() << remoteCall;
stopProcess.start(runConfig->sshCmd(), cmdArgs);
......@@ -1586,7 +1586,7 @@ void MaemoDebugRunControl::debuggingFinished()
if (gdbServer.state() != QProcess::NotRunning) {
stopProcess.kill();
const QString remoteCall = QString::fromLocal8Bit("kill %1; sleep 1; "
"kill -9 %1; pkill -9 -f gdbserver").arg(inferiorPid);
"kill -9 %1; pkill -x -9 gdbserver").arg(inferiorPid);
QStringList sshArgs;
sshArgs << "-n" << "-l" << runConfig->remoteUserName() << "-p" << port()
<< runConfig->remoteHostName() << remoteCall;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment