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 and you are staring at your command prompt. I googled for this message and found that people here and there have been complaining of this since about FreeBSD 4.2, but that absolutely none of them have received a reply. What's going on here? Down in the bowels of nvi a read of the pty returns EAGAIN and that is treated as fatal. This should only occur with read() if the input is non-blocking, and as far as I can tell it isn't. So, is this a nvi bug (read() returning EAGAIN should be non-fatal)? Is this a pty bug (read() incorrectly returning EAGAIN)? Perhaps it could be even an xterm bug? (Since I also upgraded to the XFree86 4.x series when I upgraded to FreeBSD 4.8 and maybe those other folks were early adopters). Any ideas? Stephen.
On Thu, Aug 07, 2003 at 10:30:22PM +1000, 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 > > and you are staring at your command prompt. > > I googled for this message and found that people here and there have been > complaining of this since about FreeBSD 4.2, but that absolutely none of > them have received a reply. > > What's going on here? Down in the bowels of nvi a read of the pty returns > EAGAIN and that is treated as fatal. This should only occur with read() if > the input is non-blocking, and as far as I can tell it isn't. > > So, is this a nvi bug (read() returning EAGAIN should be non-fatal)? Is > this a pty bug (read() incorrectly returning EAGAIN)? Perhaps it could be > even an xterm bug? (Since I also upgraded to the XFree86 4.x series when I > upgraded to FreeBSD 4.8 and maybe those other folks were early adopters). > > Any ideas? >stty sane Cheers, -- Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20030807/6e2d42e0/attachment.bin
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 > > and you are staring at your command prompt. > > I googled for this message and found that people here and there have been > complaining of this since about FreeBSD 4.2, but that absolutely none of > them have received a reply.Are you using bash as your shell, by any chance? -- -Chuck