Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh frozen after typing Ctrl-Z then bg
On Jun 28, 12:04am, Vincent Lefevre wrote:
}
} I started emacs from zsh 5.0.8, then wanted to put it in background.
} So, I did Ctrl-Z, then bg. But instead of getting the prompt back,
} zsh is frozen. Ctrl-C has no effect.
Sigh.  Every time we rearrange part of this, we lose signal queuing scope.
diff --git a/Src/context.c b/Src/context.c
index 1b8741f..2dc8d3b 100644
--- a/Src/context.c
+++ b/Src/context.c
@@ -53,6 +53,8 @@ zcontext_save_partial(int parts)
 {
     struct context_stack *cs;
 
+    queue_signals();
+
     cs = (struct context_stack *)malloc(sizeof(struct context_stack));
 
     if (parts & ZCONTEXT_HIST) {
@@ -67,6 +69,8 @@ zcontext_save_partial(int parts)
 
     cs->next = cstack;
     cstack = cs;
+
+    unqueue_signals();
 }
 
 /* save context in full */
-- 
Barton E. Schaefer
Messages sorted by:
Reverse Date,
Date,
Thread,
Author