From owner-freebsd-questions Mon Jan 4 22:33:40 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA06936 for freebsd-questions-outgoing; Mon, 4 Jan 1999 22:33:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA06931 for ; Mon, 4 Jan 1999 22:33:37 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id BAA03627 for freebsd-questions@FreeBSD.ORG; Tue, 5 Jan 1999 01:33:57 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199901050633.BAA03627@cc942873-a.ewndsr1.nj.home.com> Subject: w Bug? To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Date: Tue, 5 Jan 1999 01:33:57 -0500 (EST) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have noticed what appears to be a bug in the 'w' command. I have the following lines in my .xinitrc, --- Begin Included file [some preference setting snipped] # ########################### # Applications run on startup # ########################### # Clock xclock -d -update 1 -geometry 200x30-0+0 & # System status xosview -geometry 560x200+505+0 \#+505+0 & # Two initial xterms xterm -T "Top" -geometry 80x24+0+225 \#+0+255 -e top& xterm -T "Mail: $USER@scitec.com" -geometry 80x24+0+570 \#+0+570 -e elm& xterm -n "$USER@$HOST" -geometry 80x40+700+300 \#+700+300 & # The 'Login' window \xterm -C -n "Login: $USER@$HOST" -geometry 80x15+0+0 \#+0+0 --- End Included File Now, here is what I get from the 'w' command, --- Begin Included text 10:03AM up 1:04, 7 users, load averages: 0.24, 0.12, 0.09 USER TTY FROM LOGIN@ IDLE WHAT cjc v0 - 9:05AM 58 xinit /usr2/people/cjc/.xinitrc -- cjc p0 :0.0 9:05AM 5days top cjc p1 :0.0 9:05AM 57 -csh (tcsh) cjc p2 :0.0 9:05AM 3 emacs /usr/tmp/snd.221 cjc p3 :0.0 9:05AM - w --- End Included text The bug is that '5days' idle I get for ttyp1 running top. Obviously, if the machine has only been up for an hour the process cannot be idle for that long. Is this a known problem (a _very_ quick look turned up nothing for me)? Or should I write up a 'send-pr'? PS: The above output was from my work computer. Right now, on my home PC with FreeBSD, 'w' reports 'top' has been idle for 18 hours even though I only started the X session about 6 hours ago. The .xinitrc's on the two are similar but not identical. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message