Re: What do you think ?: How should pseundo terminals behave ...

From: Brandon S. Allbery KF8NH <allbery_at_ece.cmu.edu>
Date: Tue, 26 Sep 2006 12:58:39 -0400
On Sep 26, 2006, at 7:39 , Justin Hibbits wrote:

>
> On Sep 26, 2006, at 05:33 , Martin Blapp wrote:
>> 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)

3a) Hangup all processes attached to the client and switch them to  
some kind of "dead" inode (which could be a fixed entity since all  
operations on it except close() fail).  (Don't real ttys do this?)   
Dunno how easy this would be.

-- 
brandon s. allbery    [linux,solaris,freebsd,perl]     allbery_at_kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery_at_ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH
Received on Tue Sep 26 2006 - 14:58:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:00 UTC