@Override
	public int waitExited() throws InterruptedException {
		return process.waitFor();
	}
A pty session consisting of a local process and its descendants
Ghidra/Framework/Pty/src/main/java/ghidra/pty/local/LocalProcessPtySession.java