From owner-freebsd-current@FreeBSD.ORG Tue Sep 26 16:58:47 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 095EE16A412 for ; Tue, 26 Sep 2006 16:58:47 +0000 (UTC) (envelope-from allbery@ece.cmu.edu) Received: from bache.ece.cmu.edu (BACHE.ECE.CMU.EDU [128.2.129.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EFE543D49 for ; Tue, 26 Sep 2006 16:58:46 +0000 (GMT) (envelope-from allbery@ece.cmu.edu) Received: by bache.ece.cmu.edu (Postfix, from userid 953) id 18CF0A8; Tue, 26 Sep 2006 12:58:45 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on filt2.ece.cmu.edu X-Spam-Level: X-Spam-Status: No, score=0.0 required=6.0 tests=BAYES_50 autolearn=no version=3.1.4 Received: from [10.9.204.128] (dsl093-061-215.pit1.dsl.speakeasy.net [66.93.61.215]) by bache.ece.cmu.edu (Postfix) with ESMTP id 7884EA5; Tue, 26 Sep 2006 12:58:42 -0400 (EDT) In-Reply-To: <0C4B0125-11AA-4BDB-A4E3-163A6194AB68@alumni.cwru.edu> References: <20060926111452.J91466@godot.imp.ch> <0C4B0125-11AA-4BDB-A4E3-163A6194AB68@alumni.cwru.edu> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <98FD6058-7220-48DB-AC24-F989FCB2AE11@ece.cmu.edu> Content-Transfer-Encoding: 7bit From: "Brandon S. Allbery KF8NH" Date: Tue, 26 Sep 2006 12:58:39 -0400 To: Justin Hibbits X-Mailer: Apple Mail (2.752.2) Cc: current@freebsd.org Subject: Re: What do you think ?: How should pseundo terminals behave ... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2006 16:58:47 -0000 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@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH