Commit 24b2347a authored by Wolfgang Bremer's avatar Wolfgang Bremer

Give SSH applications a second to gracefully shutdown

Right now, SSH applications will receive two termination signals
immediately after another. First SIGTERM then SIGKILL. With this commit
applications get a one second break in order to shutdown properly before
they are killed anyway.

Change-Id: Ie9e33943c40e50400bea7f2a31d132710d21acba
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <>
parent 824fc105
......@@ -96,7 +96,7 @@ QString RemoteLinuxSignalOperation::interruptProcessByNameCommandLine(const QStr
void RemoteLinuxSignalOperation::killProcess(qint64 pid)
run(QString::fromLatin1("%1; %2").arg(signalProcessByPidCommandLine(pid, 15),
run(QString::fromLatin1("%1; sleep 1; %2").arg(signalProcessByPidCommandLine(pid, 15),
signalProcessByPidCommandLine(pid, 9)));
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