From 5f6c22704434f8e98787815764357147b7f87d9f Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 10 Oct 1999 09:39:17 +0000 Subject: zsh-workers/8184 --- Src/exec.c | 4 +++- Src/lex.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/exec.c b/Src/exec.c index ed77497d3..0670148c7 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -877,8 +877,10 @@ execpline(Sublist l, int how, int last1) if (how & Z_ASYNC) { lastwj = newjob; jobtab[thisjob].stat |= STAT_NOSTTY; - if (l->flags & PFLAG_COPROC) + if (l->flags & PFLAG_COPROC) { zclose(ipipe[1]); + zclose(opipe[0]); + } if (how & Z_DISOWN) { deletejob(jobtab + thisjob); thisjob = -1; diff --git a/Src/lex.c b/Src/lex.c index 069f9b39b..d88e57c22 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -642,6 +642,7 @@ gettok(void) } hungetc(d); lexstop = 0; + tokfd = -1; return AMPOUTANG; } hungetc(d); -- cgit 1.4.1