From: Ken Brown <kbrown@cornell.edu>
To: 7225@debbugs.gnu.org
Subject: bug#7225: 23.2.50; [PATCH] C-c C-c doesn't work in shell mode (Cygwin)
Date: Fri, 15 Oct 2010 19:36:36 -0400 [thread overview]
Message-ID: <4CB8E584.1090800@cornell.edu> (raw)
I think I can fix a longstanding bug in the Cygwin build of emacs, in
which C-c C-c doesn't work to interrupt a process in shell mode. Since
the problem doesn't seem to be in the bug database, I'm reporting it
first for documentation purposes, and then I'll give the proposed fix.
To reproduce:
emacs -Q
M-x shell
cat
C-c C-c
(The cat process doesn't get killed.)
The following patch seems to fix it:
=== modified file 'src/s/cygwin.h'
--- src/s/cygwin.h 2010-01-13 08:35:10 +0000
+++ src/s/cygwin.h 2010-10-15 22:20:39 +0000
@@ -132,6 +132,9 @@
returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */
#define G_SLICE_ALWAYS_MALLOC
+/* Send signals to subprocesses by "typing" special chars at them. */
+#define SIGNALS_VIA_CHARACTERS
+
/* the end */
/* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b
I'd like to apply this to the emacs-23 branch. Does anyone see a
problem with it or anything further I should test?
Ken
next reply other threads:[~2010-10-15 23:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 23:36 Ken Brown [this message]
2010-10-16 7:32 ` bug#7225: 23.2.50; [PATCH] C-c C-c doesn't work in shell mode (Cygwin) Eli Zaretskii
2010-10-16 12:44 ` Ken Brown
2010-10-16 13:26 ` Eli Zaretskii
2010-10-16 18:22 ` Ken Brown
2010-10-17 21:40 ` Ken Brown
2010-10-17 22:08 ` Eli Zaretskii
2010-10-17 23:11 ` Ken Brown
2010-10-17 23:39 ` Ken Brown
2010-10-18 6:59 ` Eli Zaretskii
2010-10-18 11:58 ` Ken Brown
2010-10-18 17:37 ` Ken Brown
2010-10-18 5:49 ` Jan Djärv
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=4CB8E584.1090800@cornell.edu \
--to=kbrown@cornell.edu \
--cc=7225@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.