X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0	tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4CBC839E.9040707@cornell.edu>
References: <4CB9DE15.8010308@cornell.edu>	<4CB9E9C0.3000509@cornell.edu>	<20101018145856.GA14608@ednor.casa.cgf.cx>	<4CBC839E.9040707@cornell.edu>
Date: Mon, 18 Oct 2010 18:40:19 +0100
Message-ID: <AANLkTi=3wJPjJV=ZszWEmk6vBn-_p9ztXUQXz1ZOpC8D@mail.gmail.com>
Subject: Re: Sending signals to a subprocess
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 18 October 2010 18:27, Ken Brown wrote:
> On 10/18/2010 10:58 AM, Christopher Faylor wrote:
>>
>> On Sat, Oct 16, 2010 at 02:06:56PM -0400, Ken Brown wrote:
>>>
>>> On 10/16/2010 1:17 PM, Ken Brown wrote:
>>>>
>>>> I could use some help fixing a longstanding bug in the Cygwin build of
>>>> emacs, in which emacs is unable to send signals to subprocesses. =C2=
=A0A
>>>> symptom from the user's point of view is that one cannot interrupt a
>>>> process in shell mode by typing C-c C-c. =C2=A0I've found a workaround=
 that
>>>> handles that case (SIGINT), as well as SIGQUIT and SIGTSTP. =C2=A0But =
as long
>>>> as I'm fixing this, I'd like to do it right and figure out how to hand=
le
>>>> all signals.
>>>>
>>>> This boils down to finding the right process group ID to pass to 'kill=
'.
>>>> On systems that have TIOCGPGRP, emacs uses the following code (in
>>>> src/process.c) to get this ID:
>>
>> If it helps, I can implement TIOCGPGRP so it will be available in Cygwin
>> 1.7.9.
>
> Yes, that would be great. =C2=A0Thanks.

I'd put that to use in mintty too, to improve support for relative
paths when opening a file with Ctrl+click or the 'Open' menu command.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

