From owner-freebsd-stable@FreeBSD.ORG Sun Aug 24 17:44:23 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 55BF516A4BF for ; Sun, 24 Aug 2003 17:44:23 -0700 (PDT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EB6943FE0 for ; Sun, 24 Aug 2003 17:44:22 -0700 (PDT) (envelope-from smckay@internode.on.net) Received: from dungeon.home (ppp191-172.lns1.bne1.internode.on.net [150.101.191.172])h7P0iJIf029303; Mon, 25 Aug 2003 10:14:20 +0930 (CST) Received: from dungeon.home (localhost [127.0.0.1]) by dungeon.home (8.12.8p1/8.11.6) with ESMTP id h7P0iHch006248; Mon, 25 Aug 2003 10:44:18 +1000 (EST) (envelope-from mckay) Message-Id: <200308250044.h7P0iHch006248@dungeon.home> To: Doug White References: <200308071230.h77CUMgj003099@dungeon.home> <3F327F44.9080909@mac.com> <200308080057.h780vDdx005361@dungeon.home> <20030809103630.Q59623@carver.gumbysoft.com> In-Reply-To: <20030809103630.Q59623@carver.gumbysoft.com> from Doug White at "Sat, 09 Aug 2003 10:40:48 -0700" Date: Mon, 25 Aug 2003 10:44:17 +1000 From: Stephen McKay cc: freebsd-stable@freebsd.org cc: Stephen McKay 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: Mon, 25 Aug 2003 00:44:23 -0000 On Saturday, 9th August 2003, Doug White wrote: >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. You almost had me convinced until I got this extraordinary result: $ cat cat: stdin: Resource temporarily unavailable $ Never seen the like in all my born days. I'm running zsh 3.1.9 on FreeBSD 4.8-RELEASE. /bin/cat is a simple program. If it isn't working properly, there's a fault in zsh or the kernel. I have not upgraded zsh since July 2000. That makes it a bug in the kernel. What else could it be? At a stretch perhaps a bug in libc. Nothing else comes to mind. Stephen.