From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22363 invoked by alias); 18 May 2006 23:25:00 -0000 Received: (qmail 22355 invoked by uid 22791); 18 May 2006 23:24:59 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 May 2006 23:24:54 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 51508EF5E; Fri, 19 May 2006 01:24:52 +0200 (CEST) From: Andreas Schwab To: Jim Blandy Cc: Alain Magloire , gdb@sources.redhat.com Subject: Re: invoking GDB from FE and signals References: <3518719F06577C4F85DA618E3C37AB91054A9EFD@nimbus.ott.qnx.com> <20060518172253.GE21003@brasko.net> X-Yow: A KAISER ROLL?! What good is a Kaiser Roll without a little COLE SLAW on the SIDE? Date: Fri, 19 May 2006 00:59:00 -0000 In-Reply-To: (Jim Blandy's message of "Thu, 18 May 2006 15:52:45 -0700") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00290.txt.bz2 Jim Blandy writes: > Andreas Schwab writes: >> Bob Rossi writes: >> >>> I find in emacs:process.c code that they send the SIGINT in different >>> ways >>> /* If possible, send signals to the entire pgrp >>> by sending an input character to it. */ >>> >>> /* TERMIOS is the latest and bestest, and seems most likely to >>> work. If the system has it, use it. */ >>> case SIGINT: >>> sig_char = &t.c_cc[VINTR]; >>> break; >>> ... >>> send_process (proc, sig_char, 1, Qnil); >> >> This part is only active if SIGNALS_VIA_CHARACTERS is defined. That is >> defined mostly for BSD-derived systems, but not, for example, for Linux. >> The fallback is to send the signal to the foreground process group of the >> terminal. > > Do you know why they prefer that approach on Linux? According to s/gnu-linux.h: /* Let's try this out, just in case. Nah. Rik Faith says it doesn't work well. */ /* #define SIGNALS_VIA_CHARACTERS */ 1993-06-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) * s/linux.h (SIGNALS_VIA_CHARACTERS): Don't #define this. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."