delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/18/14:10:49

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 18 Oct 2010 14:10:14 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Sending signals to a subprocess
Message-ID: <20101018181014.GA16596@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4CB9DE15 DOT 8010308 AT cornell DOT edu> <4CB9E9C0 DOT 3000509 AT cornell DOT edu> <20101018145856 DOT GA14608 AT ednor DOT casa DOT cgf DOT cx> <4CBC839E DOT 9040707 AT cornell DOT edu> <AANLkTi=3wJPjJV=ZszWEmk6vBn-_p9ztXUQXz1ZOpC8D AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTi=3wJPjJV=ZszWEmk6vBn-_p9ztXUQXz1ZOpC8D@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon, Oct 18, 2010 at 06:40:19PM +0100, Andy Koppe wrote:
>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. ??A
>>>>> symptom from the user's point of view is that one cannot interrupt a
>>>>> process in shell mode by typing C-c C-c. ??I've found a workaround that
>>>>> handles that case (SIGINT), as well as SIGQUIT and SIGTSTP. ??But as long
>>>>> as I'm fixing this, I'd like to do it right and figure out how to handle
>>>>> 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. ??Thanks.
>
>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.

Ok, that's even more incentive for me to do this.  It's been on my todo
list for years.  I'll try to get to it soon.

(But now that I said this, I'll probably soon discover why it hasn't been
implemented already)

cgf

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019