1
0
Fork 0
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:
Peter Stephenson 2007-08-31 09:07:45 +00:00
parent cf9c7884f1
commit 40e70b0419
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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);