Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22664 - emerge doesn't change the xterm title back to original after being killed
Summary: emerge doesn't change the xterm title back to original after being killed
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 21755 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-12 02:45 UTC by Dmitry Suzdalev
Modified: 2011-10-30 22:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for emerge (bugs.22664.patch,874 bytes, patch)
2003-08-03 00:35 UTC, Masatomo Nakano (RETIRED)
Details | Diff
patch for emerge (bugs.22664.patch,987 bytes, patch)
2003-08-03 01:01 UTC, Masatomo Nakano (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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