Re: VT_LOCKSWITCH
Sheldon Hearn <[email protected]> Thu, 11 Jul 2002 11:17:09 +0200
| Newsgroups | gmane.os.freebsd.devel.audit |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] with "unsubscribe freebsd-audit" in the body of the message