Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91082 - sys-apps/portage: [PATCH] xterm title not restored after SIGCONT
Summary: sys-apps/portage: [PATCH] xterm title not restored after SIGCONT
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-01 13:52 UTC by Fabio Rossi
Modified: 2013-08-25 17:38 UTC (History)
1 user (show)

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


Attachments
Restores last written title string on SIGCONT (restore_title.patch,1.33 KB, patch)
2010-04-12 04:48 UTC, Vincent Launchbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2005-05-01 13:52:10 UTC
During an emerge command the xterm title reports the current package being emerged.  If I send a CTRL-Z command to suspend the task and then I use the 'fg' command to continue the task, the xterm title is set to the default value.



Reproducible: Always
Steps to Reproduce:
1. emerge some packages
2. CTRL-Z
3. fg

Actual Results:  
The xterm title is set to the default value

Expected Results:  
The xterm title should be set to the old value (before the CTRL-Z command)

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 29 2005, 18:31:16)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/OpenOffice.org/share/dict/ooo /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -pipe"
DISTDIR="/mnt/lfs/distfiles/"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks keeptemp
keepwork sandbox sfperms strict"
GENTOO_MIRRORS="                
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/                
http://ftp.students.cs.unibo.it/gentoo/  "
LANG="it_IT"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acl alsa apache2 arts audiofile avi
bash-completion berkdb bitmap-fonts blas bzip2 cddb cdparanoia cdr chroot cmucl
crypt cups curl directfb divx4linux doc dv dvb emboss encode ethereal examples
faac faad fam fbcon fftw flac foomaticdb fortran fpx gcj gd gdbm gif gimpprint
gmp gnutls gphoto2 gpm graphviz gtk gtk2 imagemagick imlib java jbig jpeg jpeg2k
kde kdeenablefinal lcms libg++ libwww live lzo mad mikmod mime mjpeg mmx
mmxextmotif mozdevelop mozsvg mozxmlterm mp3 mpeg mysql ncurses network nls nntp
nptl ogg oggvorbis opengl oss pam pdflib perl plotutils png postgres ppds python
qt quicktime readline real samba sdk sdl skey smime speex spell ssl stats tcltk
tcpd tetex theora threads tiff truetype truetype-fonts type1 type1-fonts unicode
userlocales vorbis wifi wmf xanim xine xml2 xmms xv xvid yv12 zlib
video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-04-06 02:58:31 UTC
Well, the title is reset when the next package is merged. We can't do anything more than that, because SIGSTOP can't be caught and handled. We can't do more than what we already do. Sorry.
Comment 2 Vincent Launchbury 2010-04-12 04:47:16 UTC
I realize this bug is years old, but I would love to see it get fixed. I often suspend and resume emerge, to stop things lagging if I need to quickly do something in the middle of an intensive compilation.

I made a quick patch that restores the last written title string on SIGCONT. It works for me, but it's purely an example--it probably fits poorly with your code organization/style. It's patched on the latest git (5a5e51a2737a).
Comment 3 Vincent Launchbury 2010-04-12 04:48:13 UTC
Created attachment 227459 [details, diff]
Restores last written title string on SIGCONT
Comment 4 Zac Medico gentoo-dev 2013-08-25 17:38:04 UTC
(In reply to Vincent Launchbury from comment #3)
> Created attachment 227459 [details, diff] [details, diff]
> Restores last written title string on SIGCONT

Since bug 476104, the xterm title code will need to be integrated with the scheduler's sigcont handler:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ba8b9b3212e75cc8e539617cce9632c0b9bcc03c