[konsole] [Bug 401898] Closing a tab is slow with something written on the prompt

Christoph Cullmann bugzilla_noreply at kde.org
Sun Aug 1 17:35:52 BST 2021


https://bugs.kde.org/show_bug.cgi?id=401898

--- Comment #14 from Christoph Cullmann <christoph at cullmann.io> ---
(In reply to Ahmad Samir from comment #13)
> (In reply to groot from comment #12)
> >  - close konsole with Ctrl-Shift-W (terminating konsole); error messages about shell not closing, followed by kwrite dying (after a short delay)
> 
> Actually on Linux the background process doesn't die at all in either case,
> so that is inconsistent with other terminal emulators (Konsole is sending an
> EOF when the user didn't actually send an EOF, the user closed the window).
> 
> [...]
> > So the two are consistent (and frankly, the inconsistency of what-happens-to-gui-applications-launched-from-the-shell depending on how the terminal emulator is closed, would cause me to file a bug report claiming that backgrounded processes should be left alone).
> 
> I think you'd have to file that bug report with the shell you're using,
> because it's different in e.g. zsh than bash....
> 
> IMHO, the user closing the window isn't the same as the user sending EOF to
> the shell.

Yes, and e.g. try "exit" in zsh, that will terminate kwrite & processes, too.

I think the current behavior is just not ok.
It is inconsistent with what other terminals do (e.g. xterm, gnome-terminal
(and all other vte based terminals), qterminal and even the terminal in e.g. vs
code)

Beside this, as the code shows, we already have "workarounds" to avoid
misbehavior for applications and we have this bug for stuff that has half-typed
lines (and in general it doesn't work on BSD)

I will create a merge request to alter this back to the old behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list