Java ProcessBuilder process.destroy() not killing child processes in winXP
<p>I have a java app that uses <code>ProcessBuilder</code> to prepare an operating system command and gives me a <code>Process</code> object. (The actual os command is rsync over ssh using cygwin).</p>

<p>This is working well in Windows, however if I want to stop the process using <code>process.destroy()</code> it will not kill the child ssh and rsync processes.....
I have to manually kill them using the windows task manager..</p>

<p>Is it possible to get the <code>OutputStream</code> of the process and send a ctrl-c somehow before I call <code>destroy();</code>?</p>

<p>If anyone has any ideas on a workaround it would be great.
Thanks,
D</p>
