Hi,

`gnome-pty-helper` is responsible for updating the  utmpx database using 
pututxline (). For a root user pututxline () directly updates the utmpx 
database but for a non-root user it invokes a setuid program 
`utmp-update`. Presently  gnome-terminal does not wait for `utmp-update` 
to finish its work and hence this can at times lead to a situation where 
pututxline () has invoked utmp-update () and has not finished updating 
the database whereas gnome-terminal exits. This leaves stale tty entries 
in the utmpx database.

The patch makes gnome-terminal wait for database updation to complete 
before it exits.
The patch has been put up in bugzilla as well 
(http://bugzilla.gnome.org/show_bug.cgi?id=488960)

Thanks,
Rajan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vte.diff
Type: text/x-patch
Size: 1103 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20071023/f18e3d6f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vte-04-update-utmpx.diff
Type: text/x-patch
Size: 2109 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20071023/f18e3d6f/attachment-0001.bin>

Reply via email to