I've just installed a new 2.2.6 machine with xfree86.
What I've found is that when closing down an xterm it fails to remove
the utmp entry (at lest that's my guess), so you still get 'w' showing
open pty's:
% w
3:32PM up 5 days, 6:28, 21 users, load averages: 0.38, 0.29, 0.21
[...]
paul p8 :0.0 1:02PM 2:30 -
[...]
paul pj :0.0 Mon01PM 26:02 -
(The current command showing as '-' demonstrates what I mean).
Running a ktrace on xterm doesn't show any problem:
1726 xterm CALL open(0x26028,0x1,0xa)
1726 xterm NAMI "/var/run/utmp"
1726 xterm RET open 5
1726 xterm CALL lseek(0x5,0,0x3a8,0,0)
1726 xterm RET lseek 936/0x3a8
1726 xterm CALL write(0x5,0xefbfd6d8,0x24)
1726 xterm GIO fd 5 wrote 36 bytes
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
1726 xterm RET write 36/0x24
1726 xterm CALL close(0x5)
My guess is that something messed up during the installation (I went
through some headaches trying to install X via the mirror sites).
I've checked the obvious things, permissions on /var/run, on utmp itself,
and the setuid bit on the xterm binary. Although all of these must be
correct if it's creating the entry in the first place.
Anyone have any thoughts/ideas?
Cheers,
-Paul-