[Konsole-devel] [Bug 251566] konsole hangs for a while after closing a tab which initially executed autossh

Jekyll Wu adaptee at gmail.com
Sun Jul 31 20:46:10 UTC 2011


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


Jekyll Wu <adaptee at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|konsole crashes on closing  |konsole hangs for a while
                   |a tab with initially        |after closing a tab which
                   |executed autossh            |initially executed autossh




--- Comment #4 from Jekyll Wu <adaptee gmail com>  2011-07-31 20:46:10 ---
I got a clue why konsole hangs for a while.

First, when user asks to close the session through menu, konsole will send
SIGHUP to the terminal process(in this report, autossh).

Second, most terminal processes will die when SIGHUP is received, but autossh
does not. According to autossh(1), `autossh can be "prodded" to retry by
signalling it, perhaps with SIGHUP ("kill -HUP").`

Third, konsole will wait for the terminal process to die by calling
QProcess::waitForFinished(). Normally, that would return quickly. But since
autossh does not die, that method will block until the default timeout, 30s, is
reached. That is where the hang is introduced.

I will try to make a nice patch and post it on reviewboard sometime later.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list