From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 10:11:25 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF4971065674 for ; Mon, 1 Sep 2008 10:11:25 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 3BC4C8FC14 for ; Mon, 1 Sep 2008 10:11:24 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 23DC9198E37; Mon, 1 Sep 2008 12:11:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 172AC198E35; Mon, 1 Sep 2008 12:11:22 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 00CB6198E34; Mon, 1 Sep 2008 12:11:22 +0200 (CEST) Received: from wep400x.physik.uni-wuerzburg.de ([132.187.37.32]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.1HF110) with ESMTP id 2008090112112147-22731 ; Mon, 1 Sep 2008 12:11:21 +0200 Received: by wep400x.physik.uni-wuerzburg.de (sSMTP sendmail emulation); Mon, 1 Sep 2008 12:11:21 +0200 From: "Alexey Shuvaev" Date: Mon, 1 Sep 2008 12:11:21 +0200 To: Ed Schouten Message-ID: <20080901101121.GC4083@wep400x.physik.uni-wuerzburg.de> References: <48BAD085.1090507@gmail.com> <20080831200950.GF99951@hoeg.nl> <871w04syfw.fsf@kobe.laptop> MIME-Version: 1.0 In-Reply-To: <871w04syfw.fsf@kobe.laptop> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.18 (2008-05-17) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 09/01/2008 12:11:21 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 09/01/2008 12:11:21 PM, Serialize complete at 09/01/2008 12:11:21 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: freebsd-current@freebsd.org Subject: Re: csh history and pts X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 10:11:25 -0000 On Sun, Aug 31, 2008 at 11:48:35PM +0300, Giorgos Keramidas wrote: > > Yes, a bit of background is probably going to be useful... > > tcsh enables autologout automatically to a default of 60 seconds in the > following cases: > > Set to `60' (automatic logout after 60 minutes, and no > locking) by default in login and superuser shells, but not if > the shell thinks it is running under a window system (i.e., > the DISPLAY environment variable is set), the tty is a > pseudo-tty (pty) or the shell was not so compiled (see the > version shell variable). > > The `contrib/tcsh/sh.c' code implements this near line 456: > [snip] > > I have an IRC log from scottl noting that he still got the default 60 > second autologout, but this was on 6.X IIRC: > > * scottl__ tries to remember how to turn off auto-logout > scottl__: tcsh option - I guess tcsh can no longer determin > activity post TTY? > scottl__: I remember Kris mentioning an mpsafetty & tcsh > issue. I haven't had the time to go back and check if the pty-detection > we fixed with kern.pts.enable=1 still works after mpsafetty > scottl__: what does echo $autologout say? > [y1] ~> echo $autologout > 60 > on a 6.3 machine, I get > pooker] ~> echo $autologout > autologout: Undefined variable. > > I can't reproduce this with a current from Aug 29, but this snapshot has > been built with the experimental 'packet mode' patch, and a few other > local changes, so I will have to try with a clean /head/ snapshot. > FWIW: In xterm: ~> uname -a FreeBSD wep400x.physik.uni-wuerzburg.de 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun Aug 31 16:30:20 CEST 2008 root@wep400x.physik.uni-wuerzburg.de:/usr/obj/usr/src/sys/GENERIC amd64 ~> echo $autologout autologout: Undefined variable. ~> su - Password: # echo $autologout 60 In the console (I think ttyv*) autologout is not defined for both normal user and root. Finally, ~> echo $version tcsh 6.15.00 (Astron) 2007-03-03 (unknown-unknown-FreeBSD) options wide,nls,dl,al,kan,sm,rh,color,filec Back to original post, I confirm that [t]csh loses history after shutdown(8). My 0.02$, Alexey.