From owner-freebsd-questions Thu May 6 11:39:55 1999 Delivered-To: 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 (Postfix) with ESMTP id E585015CFA for ; Thu, 6 May 1999 11:39:46 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id OAA12460; Thu, 6 May 1999 14:38:34 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199905061838.OAA12460@cc942873-a.ewndsr1.nj.home.com> Subject: Re: oddity with time In-Reply-To: from Doug White at "May 6, 99 11:02:12 am" To: dwhite@resnet.uoregon.edu (Doug White) Date: Thu, 6 May 1999 14:38:34 -0400 (EDT) Cc: cjclark@home.com, chrisj@outcast.media-net.net, freebsd-questions@FreeBSD.ORG 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 Doug White wrote, > On Wed, 5 May 1999, Crist J. Clark wrote: > > % w > > 11:33PM up 51 days, 29 mins, 6 users, load averages: 0.11, 0.10, 0.18 > > USER TTY FROM LOGIN@ IDLE WHAT > > cjc v0 - Wed06PM 4:48 xinit /usr/home/cjc/.xinitrc - > > cjc p0 :0.0 Wed06PM - elm > > cjc p1 :0.0 Wed06PM 6:47 top > > . > > . > > . > > > > Notice that I have only logged into my machine at ttyv0 4:48 ago and > > then started X. X in turn spawns an xterm with top in it... somehow > > top has been running two hours longer than the X process it is running > > within. > > Are you shutting your machine down correctly? The utmp entries aren't > getting cleared. Well, if you notice that particular machine has been up for 50+ days. I shutdown X by killing the last process and then logging out. I am logged into the machine right now remotely and, % w 2:18PM up 51 days, 15:14, 2 users, load averages: 0.66, 0.27, 0.10 USER TTY FROM LOGIN@ IDLE WHAT cjc p0 AAA.BBB.CCC.DDD 10:19AM - w cjc p1 cc942873-a.ewnds 10:20AM 2 emacs /usr/tmp/snd.11871 You can see things get cleared out OK. But on the machine I am on now, % w 2:26PM up 1 day, 3:06, 14 users, load averages: 0.69, 0.83, 0.76 USER TTY FROM LOGIN@ IDLE WHAT cjc v0 - 9:57AM 4:28 xinit /usr2/people/cjc/.xinitr cjc p0 :0.0 9:57AM 1:59 elm cjc p1 :0.0 9:57AM 35 -csh (tcsh) cjc p2 :0.0 9:57AM 19:57 top . . . Same deal. > BTW, versions of xterm that shipped with 2.2.6 (?) had this problem. My > 3.0 box doesn't exhibit the behavior anymore. Both of these are 2.2.8-STABLE and... > What version of XFree86 are you on? XFree86-3.3.2. I think. I set up a 3.1 box for a co-worker and I'll now log in and start X... Whoa! Look at that, % w 2:26PM up 1 day, 18:56, 6 users, load averages: 0.02, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE WHAT cjc v0 - 2:25PM 1 xinit /usr2/people/cjc cjc p0 :0.0 2:25PM 1 -csh (tcsh) cjc p1 :0.0 2:25PM 2days elm cjc p2 :0.0 2:25PM 2days top cjc p3 :0.0 2:25PM 1 -csh (tcsh) cjc p4 pc252 2:26PM - w top and elm both are running longer than the machine has been up. Now, for the benefit of computer science, I log out and look again from my remote connection, % w 2:29PM up 1 day, 18:59, 1 user, load averages: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE WHAT cjc p4 pc252 2:26PM - w All entries look cleared out. Now start X again, % w 2:30PM up 1 day, 19 hrs, 6 users, load averages: 0.06, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE WHAT cjc v0 - 2:30PM - xinit /usr2/people/cjc cjc p0 :0.0 2:30PM 1 elm cjc p1 :0.0 2:30PM 2days -csh (tcsh) cjc p2 :0.0 2:30PM 2days top cjc p3 :0.0 2:30PM 4 -csh (tcsh) cjc p4 pc252 2:26PM - w Neat. 2 days is still associated with ttyp1 and ttyp2 even though they do not have the same processes associated with them. It does look like something is not cleared out. For completeness, here is my .xinitrc, I end sessions by killing the 'login' window (and I like to kill anything else running under X gracefully), # Load my preferences xrdb -load ~/.Xresources # Set screen off xset dpms 0 0 1800 xscreensaver & # Put picture # xv -root -rm 1 -quit ~/Images/m8detail_sm.jpg # Start the window manager fvwm2& # Clock xclock -d -update 1 -geometry 180x30-0+0 & # System status xosview -geometry 550x200+520+0 & # Two initial xterms \xterm -T "top@$HOST" -geometry 80x15+0+95 \#+0+95 -e top& \xterm -T "Mail: $USER@$HOST" -geometry 80x24+0+570 \#+0+570 -e elm & \xterm -n "$USER@$HOST" -geometry 80x24+700+230 & \xterm -n "$USER@$HOST" -geometry 80x24+700+575 & # If this is an ssh-agent invoked session, popup an xterm # with ssh-add running if [ ! "X$SSH_AGENT_PID" = "X" ]; then sleep 3 \xterm -T "SSH AUTHORIZATION" -fn '-misc-fixed-bold-r-normal--15-120-100-100-c-90-iso8859-1' -geometry 85x5+300+400 -e ssh-add fi # The 'Login' window with console messages xconsole -T "xconsole: $USER@$HOST" -geometry 480x80+0+0 -fn fixed -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message