diff options
author | Wolfgang Bremer <wolfgang.bremer@pelagicore.com> | 2017-01-12 00:25:53 +0100 |
---|---|---|
committer | Wolfgang Bremer <wolfgang.bremer@pelagicore.com> | 2017-01-13 15:18:55 +0000 |
commit | 24b2347ace3a635ba3b616ec32cd9f10565844a8 (patch) | |
tree | 70e3398524c934f5edc977090e88665afffe7026 /src/plugins/remotelinux/remotelinuxsignaloperation.cpp | |
parent | 824fc105c5c01f3c536bab02ad3d60211e09c757 (diff) |
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 <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxsignaloperation.cpp')
-rw-r--r-- | src/plugins/remotelinux/remotelinuxsignaloperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/remotelinux/remotelinuxsignaloperation.cpp b/src/plugins/remotelinux/remotelinuxsignaloperation.cpp index 671ca1ce5f..7c71c3c143 100644 --- a/src/plugins/remotelinux/remotelinuxsignaloperation.cpp +++ b/src/plugins/remotelinux/remotelinuxsignaloperation.cpp @@ -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))); } |