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

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

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)


	    if (r > 0)

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