[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 251566] konsole hangs for a while after closing a tab which
From:       Jekyll Wu <adaptee () gmail ! com>
Date:       2011-07-31 20:46:10
Message-ID: E1Qnctm-0006b2-Mx () bugs ! kde ! org
[Download RAW message or body]

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


Jekyll Wu <adaptee@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 watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic