Comment 7 for bug 183729

Revision history for this message
arboc (dcobra) wrote : Re: utmp not cleared on tty logout

I'm using kubuntu 8.04 / KDE-4 Remix. Here's my scenario:

During an X session, on occasion I need to use a virtual console for whatever reason. So I switch to tty1 (Ctrl-Alt-F1) , log in, do some stuff, then log out, go back to X (Alt-F7) and continue working. When I leave for the day, I select Shutdown, confirm, and go away, thinking the system will shutdown as usual.

The next time I use the computer (which may be several days later), I find out it never shut down at all, because kdm stopped at a dialog asking me if I want to abort an active session on vt1.

I think this bug deserves a higher priority. Even if I had seen the dialog, it is still annoying to have to click an extra button to confirm aborting an active session which no longer exists. I imagine these ghost sessions showing up in "finger", "last", etc. can probably cause other significant problems as well.

It would really help if the developers of upstart can suggest a workaround to clear the entry left over in utmp, until this bug is fixed in a future release (perhaps some command in the .logout file, or a change in /etc/event.d/tty?)