X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20120803135342.GA21169@ednor.casa.cgf.cx> References: <501AF686 DOT 6020109 AT saic DOT com> <0D835E9B9CD07F40A48423F80D3B5A70015C7C AT USA7109MB022 DOT na DOT xerox DOT net> <501BCAB8 DOT 80401 AT saic DOT com> <20120803135342 DOT GA21169 AT ednor DOT casa DOT cgf DOT cx> Date: Fri, 3 Aug 2012 10:00:19 -0400 Message-ID: Subject: Re: Ctrl+C not working with windows programs in Cygwin 1.7.16 From: K Stahl To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 OK, I've found my example on how to resolve this issue: Create a bash shell script and do the following: #!/bin/bash # Change the following to suit your application needs. java -cp path.to.main.line & function finalize() { echo 'Terminating Application' kill 0 } trap finalize SIGINT wait -- 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