From owner-freebsd-stable@FreeBSD.ORG Sat Aug 9 10:40:48 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A672E37B401 for ; Sat, 9 Aug 2003 10:40:48 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3753743F93 for ; Sat, 9 Aug 2003 10:40:48 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 28BFF72DD4; Sat, 9 Aug 2003 10:40:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 23B3672DD2; Sat, 9 Aug 2003 10:40:48 -0700 (PDT) Date: Sat, 9 Aug 2003 10:40:48 -0700 (PDT) From: Doug White To: Stephen McKay In-Reply-To: <200308080057.h780vDdx005361@dungeon.home> Message-ID: <20030809103630.Q59623@carver.gumbysoft.com> References: <200308071230.h77CUMgj003099@dungeon.home> <3F327F44.9080909@mac.com> <200308080057.h780vDdx005361@dungeon.home> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: nvi dying with "Resource temporarily unavailable" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 17:40:49 -0000 On Fri, 8 Aug 2003, Stephen McKay wrote: > >Stephen McKay wrote: > >> Since I upgraded to FreeBSD 4.8 (from 4.5) I've noticed occasional failures > >> of nvi. It will suddenly die as a key is pressed, emitting: > >> > >> Error: input: Resource temporarily unavailable We went round and round on irc about this a few weeks back. We pinned it down to a bad error check in nvi. Unfortunately the fix was non-obvious. There's a read() that needs to check for EAGAIN and loop back around on the read. If someone wants to take a crack at this, the offending read() is at common/cl_read.c line 266. > Zsh, actually. Long live zsh! :-) I'm running tcsh and was able to reproduce on a 4.6-REL box a while back. The shell doesn't appear to have a bearing. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org