1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

Merge of 23812: fix core dump on ( command & ) from 23460.

This commit is contained in:
Paul Ackersviller 2007-11-25 01:15:30 +00:00
parent 3dde427b01
commit 8eb0cb25f5

View file

@ -2571,7 +2571,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);