Discussion:
the dreaded "Resource temporarily unavailable" in vi
(too old to reply)
mi+
2004-06-30 21:12:34 UTC
Permalink
It just started to happen again. Over and over, I open a file, start
editing, then -- at a random moment -- I get: ": input: Resource
temporarily unavailable" and vi exits....

Here is the ktrace/kdump snippet:

98705 vi CALL sigaction(0x12,0x280e792c,0)
98705 vi RET sigaction 0
98705 vi CALL read(0,0x8090000,0xff)
98705 vi RET read -1 errno 35 Resource temporarily unavailable
98705 vi CALL sigaction(0x12,0x280e7914,0x280e792c)
98705 vi RET sigaction 0

read(2) is failing?

-mi (this is on a 4.8-STABLE kernel)
l***@rachinsky.de
2004-07-01 06:18:13 UTC
Permalink
Post by mi+
It just started to happen again. Over and over, I open a file, start
editing, then -- at a random moment -- I get: ": input: Resource
temporarily unavailable" and vi exits....
yes we know. I've debugged this myself and its not clear WHY its
returning EAGAIN. Also hacking vi to handle EAGAIN here is very difficult,
and really it should handle it.
It sounds somehow similar to the thread starting with
<***@dungeon.home> on freebsd stable (Subject:
nvi dying with "Resource temporarily unavailable"/Date: Thu, 07 Aug
2003 22:30:22 +1000).

Nicolas

Loading...