Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Aug 2012 12:00:47 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Ed Schouten <ed@80386.nl>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, freebsd-current@freebsd.org, Hans Petter Selasky <hselasky@c2i.net>
Subject:   Re: ttydev_cdevsw has no d_purge
Message-ID:  <79434.1343908847@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 02 Aug 2012 13:23:25 %2B0200." <CAJOYFBBbskRbXjKZdv-JgHi4vJgW0S0N2DGvZgm5_oDWcY65ig@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <CAJOYFBBbskRbXjKZdv-JgHi4vJgW0S0N2DGvZgm5_oDWcY65ig@mail.gmail.com>
, Ed Schouten writes:
>2012/8/2 Julian Elischer <julian@freebsd.org>:

TTYs are used *two* ways:  As terminals and as comms to the real world.

If a terminal-tty disappears, it should be handled like a HUP would
be, analytically it is the exact same situation as a carrier drop
on a modem.  The implementation may need to do tricky stuff, but the
result should be exactly like a HUP seen from userland.

If a comms-tty disappears, it should be handled like any other
disappearing device: ENXIO.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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