Maemo: Some adaptations for Harmattan.

Reviewed-by: kh1
This commit is contained in:
Christian Kandeler
2010-08-24 17:41:19 +02:00
parent 0a85b90d98
commit 26aec74359
3 changed files with 7 additions and 7 deletions

View File

@@ -144,8 +144,8 @@ void MaemoSshRunner::cleanup(bool initialCleanup)
QString niceKill;
QString brutalKill;
foreach (const QString &proc, m_procsToKill) {
niceKill += QString::fromLocal8Bit("pkill -x %1;").arg(proc);
brutalKill += QString::fromLocal8Bit("pkill -x -9 %1;").arg(proc);
niceKill += QString::fromLocal8Bit("pkill %1\\$;").arg(proc);
brutalKill += QString::fromLocal8Bit("pkill -9 %1\\$;").arg(proc);
}
QString remoteCall = niceKill + QLatin1String("sleep 1; ") + brutalKill;
remoteCall.remove(remoteCall.count() - 1, 1); // Get rid of trailing semicolon.