mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +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>
|
||||
|
||||
* 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)
|
||||
close(i);
|
||||
closem(FDT_UNUSED);
|
||||
waitjobs();
|
||||
if (thisjob != -1)
|
||||
waitjobs();
|
||||
_exit(lastval);
|
||||
}
|
||||
fixfds(save);
|
||||
|
|
Loading…
Reference in a new issue