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 15913
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: error on TTY read: no such file or directory
- Date: Sun, 30 Sep 2001 16:22:12 +0000
- In-reply-to: <20010930133842.C2654@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <3BB63D16.5040709@xxxxxxxxxxxxxx> <20010929173848.H16561@xxxxxxxxxxxxxx> <3BB64378.8060505@xxxxxxxxxxxxxx> <20010929181100.I16561@xxxxxxxxxxxxxx> <1010929223918.ZM20169@xxxxxxxxxxxxxxxxxxxxxxx> <20010929202423.K16561@xxxxxxxxxxxxxx> <1010930012412.ZM20346@xxxxxxxxxxxxxxxxxxxxxxx> <20010929213405.L16561@xxxxxxxxxxxxxx> <3BB6BAD4.5080201@xxxxxxxxxxxxxx> <20010930074816.N16561@xxxxxxxxxxxxxx> <20010930133842.C2654@xxxxxxxx>
On Sep 30, 1:38pm, Zefram wrote:
} Subject: Re: error on TTY read: no such file or directory
}
} lordzork@xxxxxxxxxxxx wrote:
} >i made a new strace, this time without zsh reading any of its start up
} >files. my idea was that this would make it easier to read, but the new
} >strace looks completely different from the old one, at least to me.
}
} It's still doing the same impossible thing.
I never saw the previous trace. Looking at this one, I note that it's
doing this impossible thing a lot, but only on fd 10, and sometimes zsh
just ignores the problem and loops. (That would happen when errno == 0,
or if the impossible occurred somewhere other than in getkey().)
Ignoring the problem would mean that zsh discarded at least one char of
input if there really were any, but there's no evidence of input being
lost. That in turn makes me think that reads from the tty are behaving
as if they're non-blocking, but for some reason are returning 1025 when
they should be returning -1 with EWOULDBLOCK.
--
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