Package ghidra.pty
Interface PtySession
- All Known Implementing Classes:
LocalProcessPtySession
,LocalWindowsNativeProcessPtySession
,SshPtySession
public interface PtySession
A session led by the child pty
This is typically a handle to the (local or remote) process designated as the "session leader"
-
Method Summary
Modifier and TypeMethodDescriptionGet a human-readable description of the sessionvoid
Take the greatest efforts to terminate the session (leader and descendants)int
Wait for the session leader to exit, returning its optional exit status codeint
waitExited
(long timeout, TimeUnit unit)
-
Method Details
-
waitExited
Wait for the session leader to exit, returning its optional exit status code- Returns:
- the status code, if applicable and implemented
- Throws:
InterruptedException
- if the wait is interrupted
-
waitExited
- Throws:
InterruptedException
TimeoutException
-
destroyForcibly
void destroyForcibly()Take the greatest efforts to terminate the session (leader and descendants)If this represents a remote session, this should strive to release the remote resources consumed by this session. If that is not possible, this should at the very least release whatever local resources are used in maintaining and controlling the remote session.
-
description
String description()Get a human-readable description of the session- Returns:
- the description
-