about summary refs log tree commit diff
path: root/Src/builtin.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/builtin.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/builtin.c')
-rw-r--r--Src/builtin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 60dc07f25..a274ff791 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -1489,6 +1489,7 @@ bin_fc(char *nam, char **argv, Options ops, int func)
     }
 
     if (zleactive) {
+	unqueue_signals();
 	zwarnnam(nam, "no interactive history within ZLE");
 	return 1;
     }
@@ -2808,6 +2809,7 @@ bin_typeset(char *name, char **argv, LinkList assigns, Options ops, int func)
 	return 0;
     }
     if (off & PM_TIED) {
+	unqueue_signals();
 	zerrnam(name, "use unset to remove tied variables");
 	return 1;
     }
@@ -3138,6 +3140,7 @@ bin_functions(char *name, char **argv, Options ops, int func)
 	    queue_signals();
 	    for (q = mathfuncs; q; q = q->next) {
 		if (!strcmp(q->name, funcname)) {
+		    unqueue_signals();
 		    zwarnnam(name, "-M %s: function already exists",
 			     funcname);
 		    zsfree(p->name);