Skip to content

Commit 7482fa4

Browse files
author
Christoph Läubrich
committed
Add accessor for included pty instance
Currently if I get passed a Process from by a method call I can check it for the Spawner and can already call special methods like hangup(). But there is no way to get access the the PTY used to create the Spawner so for example one can't call PTY#setTerminalSize or query any other properties. This now adds a new method pty() that returns this instance for further investigation and actions.
1 parent 52456bc commit 7482fa4

File tree

1 file changed

+4
-0
lines changed
  • core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/spawner

1 file changed

+4
-0
lines changed

Diff for: core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/spawner/Spawner.java

+4
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@ public boolean isRunning() {
423423
return (raise(pid, SIG_NOOP) == 0);
424424
}
425425

426+
public PTY pty() {
427+
return fPty;
428+
}
429+
426430
private void exec(String[] cmdarray, String[] envp, String dirpath) throws IOException {
427431
String command = cmdarray[0];
428432
SecurityManager s = System.getSecurityManager();

0 commit comments

Comments
 (0)