Package ghidra.pty.local
Class LocalProcessPtySession
java.lang.Object
ghidra.pty.local.LocalProcessPtySession
- All Implemented Interfaces:
PtySession
A pty session consisting of a local process and its descendants
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a human-readable description of the sessionvoidTake the greatest efforts to terminate the session (leader and descendants)intWait for the session leader to exit, returning its optional exit status codeintwaitExited(long timeout, TimeUnit unit)
-
Constructor Details
-
LocalProcessPtySession
-
-
Method Details
-
waitExited
Description copied from interface:PtySessionWait for the session leader to exit, returning its optional exit status code- Specified by:
waitExitedin interfacePtySession- Returns:
- the status code, if applicable and implemented
- Throws:
InterruptedException- if the wait is interrupted
-
waitExited
- Specified by:
waitExitedin interfacePtySession- Throws:
InterruptedExceptionTimeoutException
-
destroyForcibly
public void destroyForcibly()Description copied from interface:PtySessionTake 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.
- Specified by:
destroyForciblyin interfacePtySession
-
description
Description copied from interface:PtySessionGet a human-readable description of the session- Specified by:
descriptionin interfacePtySession- Returns:
- the description
-