Bug 165994

Summary: if I close konsole with a root session running "less" waiting for data, "less" is left using up all CPU
Product: [Applications] konsole Reporter: auxsvr
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: robertknight
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description auxsvr 2008-07-07 22:05:52 UTC
Version:           2.1 KDE 4.0.85 (KDE 4.1 >= 20080703 (using Devel)
Installed from:    Compiled sources
Compiler:          gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] 
OS:                Linux

Less is watching the opened file with Shift-down arrow. Another problem that might be relevant is that attempting to close a root session makes konsole freeze for about a minute and the session remains.
Comment 1 Robert Knight 2008-07-14 18:32:10 UTC
SVN commit 832426 by knight:

If a terminal process does not respond to SIGHUP (because it is running as root
for example), close the pty instead and wait for the process to exit.

CCBUG:165994

BACKPORT-4.0


 M  +16 -1     Session.cpp  
 M  +4 -2      Session.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=832426
Comment 2 auxsvr 2008-07-23 15:36:46 UTC
The "less" problem is fixed here, the problem with closing a root session remains. Should I file a new bug report for this?
Comment 3 Robert Knight 2008-09-22 04:40:57 UTC
The more general problem with root sessions has been reported here http://bugs.kde.org/show_bug.cgi?id=143880 .  I'll close this one as fixed for now.