I've created an Ant task to compile VB6 applications.
After some preprocessing of the source files, I start VB6.exe
with the appropriate parameters using
Process p = Runtime.getRuntime().exec(...);
p.waitFor();
But when I press Ctrl+C while Ant is running, the script and my task are terminated but the spawned process is still running.
How can I automatically terminate the process I started when the Ant script gets terminated? What exactly happens if I press Ctrl+C? Is my task killed immediately or is there some way to react?