Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 22664

Summary: emerge doesn't change the xterm title back to original after being killed
Product: Portage Development Reporter: Dmitry Suzdalev <dimsuz>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: simons
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for emerge
patch for emerge

Description Dmitry Suzdalev 2003-06-12 02:45:30 UTC
When I emerging something, emerge sets descriptive title on my xterm (for ex. 
"Compiling/merging smth". If it finishes normally the title is set back to original, but if I 
hit Ctrl-C while emerge is working the title "Compiling/merging smth" remains although 
emerge process is killed. 

Reproducible: Always
Steps to Reproduce:
1. emerge <any-action> <any_package> 
2. Hit CTRL-C 
Actual Results:  
Title of xterm is still reporting the status of emerge progress. 

Expected Results:  
After catching SIGINT, emerge should set xterm title back to original
Comment 1 Dmitry Suzdalev 2003-06-23 04:31:23 UTC
Don't actually know should I add this comment to this bug or file a new one, but still.... 
 
I decided to try KDE's Konsole terminal emulator and now after I do: 
 
# emerge -s <package> 
 
Konsole title is wrong: Before I issued the command above it was "Shell - Konsole" and 
after it became "xterm - Shell - Konsole". 
It seems that emerge thinks that there is only one terminal emulator -- Xterm :). 
 
If you think that this bug should be reported seporately, please tell me, I'll do it. 
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-03 00:35:08 UTC
Created attachment 15419 [details, diff]
patch for emerge

it seems atexit function doesn't work.
so I replaced it with "signal" function.
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-03 01:01:27 UTC
Created attachment 15420 [details, diff]
patch for emerge
Comment 4 SpanKY gentoo-dev 2003-08-04 08:37:10 UTC
*** Bug 21755 has been marked as a duplicate of this bug. ***
Comment 5 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-20 19:18:43 UTC
fixed in sys-apps/portage-2.0.49_pre18