unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Shmakov <ivan@siamics.net>
To: 20471@debbugs.gnu.org
Subject: bug#20471: Emacs ceased to respond to C-g on a tty; SIGINT became blocked?
Date: Thu, 2 Jun 2022 05:20:47 +0000	[thread overview]
Message-ID: <20220602052047.g6fidkxbbqoetukf@violet.siamics.net> (raw)
In-Reply-To: <87k0b42res.fsf@gnus.org>

>>>>> On 2022-05-02, Lars Ingebrigtsen wrote:
>>>>> IS == Ivan Shmakov wrote:

 > (I’m going through old bug reports that unfortunately weren’t resolved
 > at the time.)

 > Are you still seeing this issue in recent Emacs versions?

	I haven’t put Emacs to much use in a couple of years, so that’d
	be a no.  I cannot readily recall which versions I’ve had this
	bug on, but while very rare (perhaps only happening once in a few
	weeks), I’m pretty certain I’ve encountered it more than once.

 IS> After some unfortunate interaction with a process (or perhaps a
 IS> network connection), one of my Emacs instances (built from Git;
 IS> 1c7f0cdc4c1f, 2015-04-27 16:59:11 UTC) ceased to respond to C-g
 IS> on a tty.

 IS> Attaching GDB to it shows no signals being delivered on C-g,
 IS> which (AIUI) hints at either SIGINT being blocked /or/ C-g
 IS> “unbound” from the signal via terminal settings.

 IS> $ ps -o pid,pending,blocked,ignored,caught,stat,bsdtime,command \
 IS>       -C emacs24 -C emacs25 
 IS>   PID   PENDING   BLOCKED   IGNORED    CAUGHT STAT   TIME COMMAND
 IS> 19987  00000000  00000000  14001000 <cb816eff S+   843:01 emacs24
 IS> 25806  00000002  04002006  04001000 <db816eff Sl+   52:00 emacs25
 IS> $ 

	AIUI, bit 1 set (as in, ‘0 != (mask & 2)’) in the ‘blocked’
	mask above suggests that signal 2 (SIGINT) was indeed blocked.
	Ditto for ‘pending.’

-- 
FSF associate member #7257  np. AUTOEXEC.BAT — Master Boot Record





  parent reply	other threads:[~2022-06-02  5:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30 15:30 bug#20471: Emacs ceased to respond to C-g on a tty; SIGINT became blocked? Ivan Shmakov
2015-04-30 16:00 ` Andreas Schwab
2015-05-04 15:55   ` Ivan Shmakov
2015-05-04 16:09     ` Eli Zaretskii
2015-05-04 16:20       ` Ivan Shmakov
2022-05-02  9:51 ` Lars Ingebrigtsen
2022-05-30 18:06   ` Lars Ingebrigtsen
2022-06-02  5:20   ` Ivan Shmakov [this message]
2022-06-02  9:19     ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20220602052047.g6fidkxbbqoetukf@violet.siamics.net \
    --to=ivan@siamics.net \
    --cc=20471@debbugs.gnu.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.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).