mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
23812: fix core dump on ( command & ) from 23460
This commit is contained in:
parent
cf9c7884f1
commit
40e70b0419
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2007-08-31 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* 23812: Src/exec.c: ( command & ) caused core dump after 23460.
|
||||||
|
|
||||||
2007-08-30 Clint Adams <clint@zsh.org>
|
2007-08-30 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* Chris Lamb: 23810: Completion/Debian/Command/_lighttpd:
|
* Chris Lamb: 23810: Completion/Debian/Command/_lighttpd:
|
||||||
|
|
|
@ -2910,7 +2910,8 @@ execcmd(Estate state, int input, int output, int how, int last1)
|
||||||
if (fdtable[i] != FDT_UNUSED)
|
if (fdtable[i] != FDT_UNUSED)
|
||||||
close(i);
|
close(i);
|
||||||
closem(FDT_UNUSED);
|
closem(FDT_UNUSED);
|
||||||
waitjobs();
|
if (thisjob != -1)
|
||||||
|
waitjobs();
|
||||||
_exit(lastval);
|
_exit(lastval);
|
||||||
}
|
}
|
||||||
fixfds(save);
|
fixfds(save);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue