From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT Date: Fri, 21 Dec 2012 15:02:22 -0500 Message-ID: <9ad2y3fa29.fsf@fencepost.gnu.org> References: <50E21696-8D0E-4E50-90A9-06391A6BEE54@tenkan.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1356120183 14164 80.91.229.3 (21 Dec 2012 20:03:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Dec 2012 20:03:03 +0000 (UTC) Cc: 13222@debbugs.gnu.org, "Tim Daly Jr." To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 21 21:03:18 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tm8oM-00024X-Pq for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Dec 2012 21:03:14 +0100 Original-Received: from localhost ([::1]:52129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm8o8-0008LD-Vr for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Dec 2012 15:03:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm8ny-0008L4-Lr for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2012 15:02:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tm8nw-0007sc-2H for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2012 15:02:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm8nv-0007sY-VZ for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2012 15:02:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tm8oA-0005Z1-FQ for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2012 15:03:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <50E21696-8D0E-4E50-90A9-06391A6BEE54@tenkan.org> Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Dec 2012 20:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13222 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13222-submit@debbugs.gnu.org id=B13222.135612016621363 (code B ref 13222); Fri, 21 Dec 2012 20:03:02 +0000 Original-Received: (at 13222) by debbugs.gnu.org; 21 Dec 2012 20:02:46 +0000 Original-Received: from localhost ([127.0.0.1]:54614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tm8nu-0005YU-HM for submit@debbugs.gnu.org; Fri, 21 Dec 2012 15:02:46 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:56180) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tm8nn-0005YH-Sc for 13222@debbugs.gnu.org; Fri, 21 Dec 2012 15:02:44 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Tm8nW-00012V-HQ; Fri, 21 Dec 2012 15:02:22 -0500 X-Spook: Bush Wired George W. Bush Mossad Mantis target mindwar X-Ran: 6@`AiiJ1VCCo-|*-B|j,bBuwVbCS,2%TkJo.Ka#ntT%gYF8'L\'o:s,v69SKzkk8BT]zu5 X-Hue: blue X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68871 Archived-At: Andreas Schwab wrote: > "Tim Daly Jr." writes: > >> If you ssh someplace in shell mode and hit C-c C-c, it kills the ssh >> process. It wasn't always that way. The intended effect is just to >> kill the foreground process on the remote host, as if you'd hit C-c >> at a terminal. > > It looks like Darwin doesn't have SIGNALS_VIA_CHARACTERS defined. Since > it's BSD-like I'd guess it really should. Could someone with a Mac try this out with the emacs-24 branch, and see if it fixes the issue and doesn't cause any obvious problems? One way to do it is to run configure as normal, then edit src/config.h and uncomment #define SIGNALS_VIA_CHARACTERS 1 (Seems surprising this has not been reported before. AFAICS, S_VIA_C has never been defined on Darwin, so this issue should be present in Emacs 23 as well. Would be good if someone could check that too.)