Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 1996 13:49:44 +0100 (BST)
From:      Doug Rabson <dfr@render.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        dfr@freefall.freebsd.org, freebsd-lite2@freefall.freebsd.org
Subject:   Re: cvs commit: src/sys/miscfs/deadfs dead_vnops.c          src/sys/miscfs/specfs spec_vnops.c
Message-ID:  <Pine.BSF.3.95.960930134632.10204B-100000@minnow.render.com>
In-Reply-To: <199609301220.WAA17001@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 30 Sep 1996, Bruce Evans wrote:

> >  Branch:      sys/miscfs/deadfs  LITE2
> >  Modified:    sys/miscfs/deadfs  dead_vnops.c
> >  Log:
> >  Restore FreeBSD behaviour for dead_read.
> 
> I prefer the Lite2 behaviour.  The tty driver already implements it for
> disconnected but unrevoked ttys, so applications must be used to it.
> (POSIX allows either EOF or EIO for reads on disconnected ttys.)
> Disconnection should be implemented using revoke() to free the physical
> tty.

The tricky part is marking the vnode with the VISTTY flag.  This was done
by having d_type == D_TTY for the cdevsw of the tty and checking that in
specfs_open.  Since ttys don't have a bdevsw and there was no handy
d_flags to use instead of d_type in cdevsw, I couldn't know whether the
device was a tty and set the VISTTY flag.  I left the lite2 code there
conditionally if you can think of a way to make it work.

--
Doug Rabson, Microsoft RenderMorphics Ltd.	Mail:  dfr@render.com
						Phone: +44 171 734 3761
						FAX:   +44 171 734 6426




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.960930134632.10204B-100000>