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

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Tue Sep 26 09:58:47 PDT 2006


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





More information about the freebsd-current mailing list