who command misses tty1..kernel or sh-utils ?
who (GNU sh-utils) 2.0
Written by Joseph Arceneaux and David MacKenzie.
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
who seems to loose interest in the fact that tty1 is also being used.
initially i's shown after a restart but after a while it is missed. maybe a kernel problem, maybe not :
grobbebol:~ $ w
8:42am up 4 days, 4:42, 6 users, load average: 0.34, 0.18, 0.06
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty2 - Mon 9am 38.00s 0.82s 0.69s -bash bengel tty3 - Sun10pm 0.00s 7.21s 0.04s w bengel tty4 - Sun 4am 11.00s 0.45s 0.12s mutt bengel tty5 - Sun11pm 1:59 26.06s 25.88s tin bengel tty6 - Mon 9am 7:24 0.24s 0.15s -bash roel tty8 - Sun10pm 23:39m 4.33s 4.17s mutt
grobbebol:~ $ who
root tty2 Jul 16 09:01 bengel tty3 Jul 15 22:46 bengel tty4 Jul 15 04:13 bengel tty5 Jul 15 23:01 bengel tty6 Jul 16 09:19 roel tty8 Jul 15 22:31
I have seen this with many, if not all 2.4 kernels. this is 2.4.6. tty1 _is_ active :
[....]
root 3857 0.0 0.4 2812 1120 tty1 R 08:46 0:00 ps aux
so.. kernel problem or sh-utils ?
Linux grobbebol 2.4.6 #1 SMP Wed Jul 4 18:13:45 GMT 2001 i686 unknown
Signature · 3 lines
Grobbebol's Home | Don't give in to spammers. -o) http://www.xs4all.nl/~bengel | Use your real e-mail address /\ Linux 2.4.6.(apic) SMP 466MHz/256 MB | on Usenet. _\_v
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Roeland" == Roeland Th Jansen <[email protected]> writes:
Roeland> who (GNU sh-utils) 2.0 Written by Joseph Arceneaux and David Roeland> MacKenzie.
[snip]
Roeland> who seems to loose interest in the fact that tty1 is also Roeland> being used.
[snip]
Roeland> I have seen this with many, if not all 2.4 kernels. this is Roeland> 2.4.6. tty1 _is_ active :
I have discussed this with Roeland offline and we are both using XFree 4.02. I start my system with runlevel 3 (and so does Roeland?) and then we run startx &'. It is only after this that the utmp' file gets stomped. I am not quite sure how this could be a kernel problem. I don't know where the code would be that touches `utmp'. I have sh-utils versin 2.0 (freshly compiled) with Linux 2.4.7. I also wrote this code,
#include <stdio.h>
#include <stdlib.h>
#include <utmp.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
int fd;
struct utmp loginEntry;
fd = open(_PATH_UTMP,O_RDONLY);
if(fd >= 0) {
while(read(fd,&loginEntry,sizeof(loginEntry))) {
printf("type %d, ", loginEntry.ut_type);
printf("pid %d, ", loginEntry.ut_pid);
printf("line %s, ", loginEntry.ut_line);
printf("id %s, ", loginEntry.ut_id);
printf("user %s, ", loginEntry.ut_user);
printf("host %s\n", loginEntry.ut_host);
}
close(fd);
}
else {
printf("Cann't open " _PATH_UTMP);
}
return 0;
}I have attached the output of this code and my `ps -ef'. You can see from the ps output that there is a user logged on tty1. I use lkml, but not the sh-utils... feel free to contact me if you wish additional information. I always see this after running `X', never before.
regards,
Bill Pringlemeir.