From 40e70b0419dc570770fb005f1c5c087f24d90182 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 31 Aug 2007 09:07:45 +0000 Subject: 23812: fix core dump on ( command & ) from 23460 --- ChangeLog | 4 ++++ Src/exec.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5494843d1..acece6740 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-08-31 Peter Stephenson + + * 23812: Src/exec.c: ( command & ) caused core dump after 23460. + 2007-08-30 Clint Adams * Chris Lamb: 23810: Completion/Debian/Command/_lighttpd: diff --git a/Src/exec.c b/Src/exec.c index 2ab5fb164..6d45f7452 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -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); -- cgit 1.4.1