From owner-freebsd-audit Thu Jul 11 2:16:12 2002 Delivered-To: freebsd-audit@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 561F537B400 for ; Thu, 11 Jul 2002 02:16:07 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DFCE43E09 for ; Thu, 11 Jul 2002 02:16:06 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 3.36 #1) id 17Sa4T-0000Gh-00; Thu, 11 Jul 2002 11:17:09 +0200 Date: Thu, 11 Jul 2002 11:17:09 +0200 From: Sheldon Hearn To: Dima Dorfman Cc: audit@freebsd.org Subject: Re: VT_LOCKSWITCH Message-ID: <20020711091709.GC736@starjuice.net> References: <43415.1022589698@axl.seasidesoftware.co.za> <20020710050455.E28483EFB@turbine.trit.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020710050455.E28483EFB@turbine.trit.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On (2002/07/10 05:04), Dima Dorfman wrote: > > If you're up to it, I'd love to see the same functionality available as > > an extension to lock(1). Imagine the convenience of being able to type > > > > lock -npS > > > > on just one terminal and not have to worry about the rest! > > Sounds nice. How about the following patch? Dima, this kicks ass! I don't have time to review your patch, but the resulting binary is something I've wanted in the base system for a couple of years. Thanks! > P.S. Does anyone know what this is for: > > if (ioctl(0, TIOCGETP, &ntty)) > exit(1); > > It's at line 232 after the patch (210 before the patch). ntty isn't > used anywhere in or after the loop the above is in, so it seems pretty > pointless. I think that's just to check that feedback echo is still turned off, no? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message