mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
18392: read with -p and -t and no coprocess crashed.
This commit is contained in:
parent
244f2a14fc
commit
2941469f61
@ -1,3 +1,8 @@
|
||||
2003-03-26 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 18392: Src/builtin.c: read with -p and -t options crashed
|
||||
if no coprocess owing to bad file descriptor.
|
||||
|
||||
2003-03-26 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 18391: Test/.distfiles, Test/B03print.ztst, Test/B04read.ztst,
|
||||
|
@ -4212,7 +4212,8 @@ bin_read(char *name, char **args, Options ops, int func)
|
||||
timeout = (zlong)mn.u.l * (zlong)1000000;
|
||||
}
|
||||
}
|
||||
if (!read_poll(readfd, &readchar, keys && !zleactive, timeout)) {
|
||||
if (readfd == -1 ||
|
||||
!read_poll(readfd, &readchar, keys && !zleactive, timeout)) {
|
||||
if (OPT_ISSET(ops,'k') && !zleactive && !isem)
|
||||
settyinfo(&shttyinfo);
|
||||
if (haso) {
|
||||
|
Loading…
Reference in New Issue
Block a user