Git commit 18dc0fde2b47b70ac65e4a0400ed0b79c12b1196 by Kurt Hindenburg, on behalf of Christoph Cullmann.
Committed on 06/09/2021 at 16:35.
Pushed by hindenburg into branch 'release/21.08'.
improve session closing behavior
the new session close behavior is again the old
- first send SIGHUP and wait one second if that works
- then hard kill
before we tried to send an EOF character
this needed workaround to not kill "non shell" programs
unexpected and doesn't work e.g. if
- you have some not finished command input in your shell
- on e.g. FreeBSD in general
When closing the session with some background process still running:
- using Ctrl+D (which sends EOF) will leave that background process running
(which is the expected behaviour with e.g. BASH: https://lists.gnu.org/archive/html/bug-bash/2009-03/msg00091.html)
- using e.g. the close button on the titlebar will close the session and kill any background processes
You can also use 'somecommand & disown', if you want to ensure background processes
aren't killed when you close a konsole window.
Related: bug 401898
(cherry picked from commit 3d967a597472a75b2afbd75afb20d7f44a3881f2)
M +0 -16 src/Pty.cpp
M +0 -5 src/Pty.h
M +7 -18 src/session/Session.cpp
Git commit 18dc0fde2b47b70 ac65e4a0400ed0b 79c12b1196 by Kurt Hindenburg, on behalf of Christoph Cullmann.
Committed on 06/09/2021 at 16:35.
Pushed by hindenburg into branch 'release/21.08'.
improve session closing behavior
the new session close behavior is again the old
- first send SIGHUP and wait one second if that works
- then hard kill
before we tried to send an EOF character
this needed workaround to not kill "non shell" programs
unexpected and doesn't work e.g. if
- you have some not finished command input in your shell
- on e.g. FreeBSD in general
When closing the session with some background process still running: /lists. gnu.org/ archive/ html/bug- bash/2009- 03/msg00091. html)
- using Ctrl+D (which sends EOF) will leave that background process running
(which is the expected behaviour with e.g. BASH:
https:/
- using e.g. the close button on the titlebar will close the session and kill any background processes
You can also use 'somecommand & disown', if you want to ensure background processes b2afbd75afb20d7 f44a3881f2)
aren't killed when you close a konsole window.
Related: bug 401898
(cherry picked from commit 3d967a597472a75
M +0 -16 src/Pty.cpp Session. cpp
M +0 -5 src/Pty.h
M +7 -18 src/session/
https:/ /invent. kde.org/ utilities/ konsole/ commit/ 18dc0fde2b47b70 ac65e4a0400ed0b 79c12b1196