in src/com/pty4j/windows/winpty/WinPtyProcess.java [218:237]
public synchronized void destroy() {
myWinPty.close();
// Close unused streams.
if (!myUsedInputStream) {
try {
myInputStream.close();
} catch (IOException e) { }
}
if (!myUsedOutputStream) {
try {
myOutputStream.close();
} catch (IOException e) { }
}
if (!myUsedErrorStream) {
try {
myErrorStream.close();
} catch (IOException e) { }
}
}