zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: zsh frozen after typing Ctrl-Z then bg
Date: Sat, 27 Jun 2015 15:51:17 -0700	[thread overview]
Message-ID: <150627155117.ZM26366@torch.brasslantern.com> (raw)
In-Reply-To: <20150627220456.GA31958@xvii.vinc17.org>

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


      reply	other threads:[~2015-06-27 22:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-27 22:04 Vincent Lefevre
2015-06-27 22:51 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=150627155117.ZM26366@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).