X-Recipient: archive-cygwin@delorie.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.6020109@saic.com>	<0D835E9B9CD07F40A48423F80D3B5A70015C7C@USA7109MB022.na.xerox.net>	<501BCAB8.80401@saic.com>	<20120803135342.GA21169@ednor.casa.cgf.cx>
Date: Fri, 3 Aug 2012 10:00:19 -0400
Message-ID: <CAMK_jUV9SgGeH9JCC-=Yu3t3BzF=A1UfxuBmFy5NeZtqnAP76g@mail.gmail.com>
Subject: Re: Ctrl+C not working with windows programs in Cygwin 1.7.16
From: K Stahl <kdstahl@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
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

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

