X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4CBC839E.9040707@cornell.edu> Date: Mon, 18 Oct 2010 13:27:58 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Sending signals to a subprocess 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> In-Reply-To: <20101018145856.GA14608@ednor.casa.cgf.cx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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. Ken -- 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