Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: error on TTY read: no such file or directory
- X-seq: zsh-workers 15905
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: lordzork@xxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Subject: Re: error on TTY read: no such file or directory
- Date: Sun, 30 Sep 2001 01:24:12 +0000
- In-reply-to: <20010929202423.K16561@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010928121347.B16561@xxxxxxxxxxxxxx> <3BB56D03.2000300@xxxxxxxxxxxxxx> <20010929034953.E16561@xxxxxxxxxxxxxx> <3BB62E93.10802@xxxxxxxxxxxxxx> <20010929170811.G16561@xxxxxxxxxxxxxx> <3BB63D16.5040709@xxxxxxxxxxxxxx> <20010929173848.H16561@xxxxxxxxxxxxxx> <3BB64378.8060505@xxxxxxxxxxxxxx> <20010929181100.I16561@xxxxxxxxxxxxxx> <1010929223918.ZM20169@xxxxxxxxxxxxxxxxxxxxxxx> <20010929202423.K16561@xxxxxxxxxxxxxx>
On Sep 29, 8:24pm, lordzork@xxxxxxxxxxxx wrote:
}
} In the gothic chambers of the underworld on Sat 29 Sep 2001 at 18:39 -0400,
} Bart Schaefer muttered darkly:
}
} > You need to find out why your read() call is so badly broken!
}
} and this read() function is a part of what? zsh? glibc?
It's a system call (that's why it shows up in strace output).
As a workaround you can try changing
if (r == 1)
break;
to
if (r > 0)
break;
at line 407 of Src/Zle/zle_main.c; but if the wrong number of bytes may
be returned by read(), all sorts of other things are going to break (not
just in zsh), so you shouldn't leave it at that. You may have to take
this up on a linux kernel list.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author