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 Type
    Method
    Description
    Get a human-readable description of the session
    void
    Take the greatest efforts to terminate the session (leader and descendants)
    int
    Wait for the session leader to exit, returning its optional exit status code
    int
    waitExited(long timeout, TimeUnit unit)
     
  • Method Details

    • waitExited

      int waitExited() throws InterruptedException
      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

      int waitExited(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException
      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