Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2006 07:39:11 -0400
From:      Justin Hibbits <jrh29@alumni.cwru.edu>
To:        current@freebsd.org
Subject:   Re: What do you think ?: How should pseundo terminals behave ...
Message-ID:  <0C4B0125-11AA-4BDB-A4E3-163A6194AB68@alumni.cwru.edu>
In-Reply-To: <20060926111452.J91466@godot.imp.ch>
References:  <20060926111452.J91466@godot.imp.ch>

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

On Sep 26, 2006, at 05:33 , Martin Blapp wrote:
> So how should ptys behave ?
>
> 1.) Block until the tty is really opened again and there is
>     a master available again. Then write to the freshly opened
>     pty. (not easy to do)
>
> 2.) Block forever since the tty will not be reopened anymore since
>     we leak ptys.
>
> 3.) Detect that there is no master around anymore and
>     return ENXIO:
>
>     # echo "BLUBBER" > /dev/ttypX
>     # /dev/ttypX: Device not configured
>
>     (easy to do, i've got a fix. IMHO this is the best thing to
>     do. This allows fast error recovery in case the master
>     has been gone away)
>
> 4.) Keep the current behaviour, leak terminals or panic.
>
>     (the simplest thing to do. Let's keep the bugs)
>
> Please vote for any of those choice. Thank you for your
> participation.
>
> Martin

I vote #3, it makes the most sense.

- Justin




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0C4B0125-11AA-4BDB-A4E3-163A6194AB68>