about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-10-03 13:43:20 +0100
committerPeter Stephenson <pws@zsh.org>2016-10-03 13:43:20 +0100
commit4ab3fcc90d928d200f9e70c81189079c3316b42d (patch)
tree0e0ee027291957ac1f14126c7a4674cfcd19f435 /Src/exec.c
parent36a11804b467d7553f8fdaed9320869d8d984f77 (diff)
downloadzsh-4ab3fcc90d928d200f9e70c81189079c3316b42d.tar.gz
zsh-4ab3fcc90d928d200f9e70c81189079c3316b42d.tar.xz
zsh-4ab3fcc90d928d200f9e70c81189079c3316b42d.zip
39545: Add some missing unqueue_signals().
All of these are added simply to fit existing logic in other branches.
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c
index a4294288b..9890286b2 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1795,6 +1795,8 @@ execpline(Estate state, wordcode slcode, int how, int last1)
 		deletejob(jn, 0);
 	    thisjob = pj;
 	}
+	else
+	    unqueue_signals();
 	if ((slflags & WC_SUBLIST_NOT) && !errflag)
 	    lastval = !lastval;
     }
@@ -5556,6 +5558,7 @@ runshfunc(Eprog prog, FuncWrap wrap, char *name)
 	if (!cont) {
 	    if (ou)
 		zfree(ou, ouu);
+	    unqueue_signals();
 	    return;
 	}
 	wrap = wrap->next;