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: Ctrl+C not working with windows programs in Cygwin 1.7.16


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


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