This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Sending signals to a subprocess


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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]