Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: error on TTY read: no such file or directory



lordzork@xxxxxxxxxxxx wrote:

In the gothic chambers of the underworld on Sat 29 Sep 2001 at 21:24 -0400,
Bart Schaefer muttered darkly:


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.



i don't see how it can be the kernel, though. i've tried three different
kernel versions (2.4.7, 2.4.9, 2.4.10) and the problem remains with all
of them. furthermore, i've got virtually the exact setup duplicated on
two other boxes, with the same kernel versions. zsh works fine on both
boxes.



What about glibc versions? Are they the same on all systems?



Messages sorted by: Reverse Date, Date, Thread, Author