Subject: Re: O_ASYNC on ttys
To: =?X-UNKNOWN?Q?Jarom=EDr_Dolecek?= <email@example.com>
From: Bill Studenmund <firstname.lastname@example.org>
Date: 07/07/2001 10:59:43
On Sat, 7 Jul 2001, Jarom=EDr Dolecek wrote:
> der Mouse wrote:
> > I couldn't see any harm in permitting TIOCSPGRP on ttys that aren't
> > your control tty, provided they aren't anyone else's either, so I
> > simply disabled the control-tty test for ttys that don't belong to a
> > session:
> This looks okay. Does revoke(2) check (and remove) the O_ASYNC flag?
No. revoke calls VOP_REVOKE(), which blows away the vnode for the device
(makes it a VBAD vnode among other things). Through the twisty path of
calls, vclean() gets called, and it'll call VOP_CLOSE() which should shut
down the tty.