[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#221998: /usr/X11R6/bin/xdm: wtmp entries not cleared upon exit



>     who
>
> notice the entry for the old X process that doesn't exist anymore.

I noticed the same thing today.  The problem arises from the removal of
Xsetup and Xreset from /etc/X11/xdm/.  According to the changlog, these
files were removed so that xconsole would not be run, but there was an
unintended side effect.

Although Xsetup served no other purpose than to run xconsole, Xreset
served two purposes: to kill xconsole, and to remove the utmp/wtmp
entries.

xconsole was started in Xsetup and killed in Xreset.

The utmp/wtmp entries were created by sessreg -a in Xstartup, and
removed by sessreg -d in Xreset.

Now there is a sessreg -a with no corresponding sessreg -d.

Perhaps Xsetup and Xreset should be reinstated, and the xconsole parts
commented out or bypassed with if/then statements.  Even if this means
that Xsetup will be a no-op, it might still be good to leave it as a
place-holder for people poking around looking for opportunities to
interpose their customizations.

AMC




Reply to: