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

Re: error on TTY read: bad file descriptor



On Tue, 14 Apr 2009, Atom Smasher wrote:

> here's an edge case...
> 
>  ## Cygwin 6.8.99.903(242)
>  ## zsh 4.3.9 (i686-pc-cygwin)
> 
> http://smasher.org/tmp/zsh-tty-fail.txt
> 
> start up zsh in an XTerm(tm) with no rc file (zsh -f) then source the file
> "zsh-tty-fail.txt".
> 
> not every time, but most of the time, when you re-size the terminal the shell
> will die with the message:
> 	zsh: error on TTY read: bad file descriptor
> 
> the workaround so far is to just disable TRAPWINCH if it's an xterm on cygwin.
> google doesn't tell me much about the error, except that someone found it once
> before but didn't give enough details for it to be duplicated. with this set
> up i can cause the error very consistently.

Just as another data point, I can't duplicate this, even though I'm using 
the same versions of xterm and Zsh.  Other possible variables:

Cygwin/X X Server / Version 1.5.3 (20090222)

Microsoft Windows Server 2003 R2 / Standard Edition / Service Pack 2

Cygwin DLL version info: (from cygcheck -s)
 DLL version: 1.5.25
 DLL epoch: 19
 API major: 0
 API minor: 156


(1.5.25 seems old... I thought 1.7 was out... will check on that and 
report back if I upgrade and it breaks.)

Best,
Ben



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