Re: Possible 'who' bug?

Peter Butler <[email protected]>
Newsgroups gmane.comp.gnu.sh-utils.bugs
Organization Performance Technologies
Message-ID <02042610113912.08911@bart>
Sorry for not having givenyou these O/S details earlier, it's:

[peter@bart (28)] uname -a
Linux bart 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown

[peter@bart (29)] cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 3
cpu MHz         : 798.173
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov 
pat pse36 mmx fxsr sse
bogomips        : 1592.52

Also, attached is /var/run/tmp, if it's of any help...







On Friday 26 April 2002 01:19 am, Bob Proulx wrote:
> > Possible bug with 'who', or kernel?
>
> Possibly neither.
>
> > I have a couple of entries listed when I do a 'who' that I can't seem to
> > get rid of (other than rebooting).  I've even gone so far as to take my
> > system down to INIT runlevel 1 (single-user mode) and kill all extraneous
> > processes (so that only the kernel threads and the single-user mode bash
> > shell are running) and yet I still always see:
> >
> > peter    pts/19   Apr 22 17:20
> > peter    pts/21   Apr 22 17:24
> >
> >
> > My computer is still in this 'state' so if there is anything you want me
> > to look at (yo get you some more debug info) let me know.
>
> The who command formats and prints the contents of /var/run/utmp aka
> /etc/utmp aka /var/adm/utmp.  [Many names because there are many
> different systems and people have differing ideas about where it
> should go.]  who does not modify the contents and has not control over
> it.  The who command just prints out what other operating system
> programs have logged there.
>
> I have also seen cases where entries get written to the file and
> nothing cleans those up.  Normally when you log into a computer any
> interactive tty login will be recorded in that file.  When you log out
> the entry will be removed.  This also happens when you start up xterm
> windows.  But if things crash they do not get the chance to clean up
> the file and will sometimes leave that data around.  If this is
> happening often then probably something systematic is occurring which
> you could track down and fix.  This might be a program not quite
> properly configured on your system.
>
> You did not say which operating system you were working on.  Different
> systems handle this differently.  You can usually do a 'man utmp' to
> get information about your particular system.
>
> Sorry this is not of more help in solving your problem.  But perhaps
> it will help in some way.  Good luck.
>
> Bob

-- 

Peter Butler
Software Engineer, Signaling Systems Group
Performance Technologies Inc.
http://www.pt.com
Tel: 613-237-4284 x. 244
Fax: 613-237-5277
utmp (text/plain, 21.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.