in src/com/pty4j/unix/UnixPtyProcess.java [379:401]
public void run() {
try {
pid = execute(myCommand, myEnv, myDir);
}
catch (Exception e) {
pid = -1;
myException = e;
}
// Tell spawner that the process started.
synchronized (UnixPtyProcess.this) {
UnixPtyProcess.this.notifyAll();
}
if (pid != -1) {
// Sync with spawner and notify when done.
myExitCode = PtyHelpers.getPtyExecutor().waitForProcessExitAndGetExitCode(pid);
synchronized (UnixPtyProcess.this) {
isDone = true;
UnixPtyProcess.this.notifyAll();
}
myPty.breakRead();
if (myErrPty != null) myErrPty.breakRead();
}
}