Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 11:17:09 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        Dima Dorfman <dima@trit.org>
Cc:        audit@freebsd.org
Subject:   Re: VT_LOCKSWITCH
Message-ID:  <20020711091709.GC736@starjuice.net>
In-Reply-To: <20020710050455.E28483EFB@turbine.trit.org>
References:  <43415.1022589698@axl.seasidesoftware.co.za> <20020710050455.E28483EFB@turbine.trit.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020711091709.GC736>