From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs 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 Message-ID: <4CB8E584.1090800@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287186151 23907 80.91.229.12 (15 Oct 2010 23:42:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 23:42:31 +0000 (UTC) To: 7225@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 16 01:42:30 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6tuv-0006cl-JK for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Oct 2010 01:42:29 +0200 Original-Received: from localhost ([127.0.0.1]:43749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6tuu-0005Pv-UT for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 19:42:28 -0400 Original-Received: from [140.186.70.92] (port=52552 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6tuq-0005Pl-0o for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 19:42:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6tup-0001wq-1W for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 19:42:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6tup-0001wm-0E for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 19:42:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P6tmk-00029P-H4; Fri, 15 Oct 2010 19:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2010 23:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7225 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12871855968249 (code B ref -1); Fri, 15 Oct 2010 23:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2010 23:33:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6tlz-000290-ND for submit@debbugs.gnu.org; Fri, 15 Oct 2010 19:33:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6tlx-00028q-Ef for submit@debbugs.gnu.org; Fri, 15 Oct 2010 19:33:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6tpQ-0001Mh-Fi for submit@debbugs.gnu.org; Fri, 15 Oct 2010 19:36:49 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:44868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6tpQ-0001Md-Dj for submit@debbugs.gnu.org; Fri, 15 Oct 2010 19:36:48 -0400 Original-Received: from [140.186.70.92] (port=51090 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6tpP-0004tp-GC for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 19:36:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6tpO-0001Ln-9h for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 19:36:47 -0400 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141]:44507 helo=authusersmtp.mail.cornell.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6tpO-0001Is-6q for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 19:36:46 -0400 Original-Received: from [192.168.1.5] (cpe-67-249-196-94.twcny.res.rr.com [67.249.196.94]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id o9FNaZs6017509 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 15 Oct 2010 19:36:35 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 15 Oct 2010 19:34:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40916 Archived-At: 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