Package ghidra.pty.unix
Class UnixPty
java.lang.Object
ghidra.pty.unix.UnixPty
- All Implemented Interfaces:
Pty
,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes both ends of the ptygetChild()
Get a handle to the child side of the ptyGet a handle to the parent side of the ptystatic UnixPty
openpty
(PosixC.Ioctls ioctls)
-
Method Details
-
openpty
- Throws:
IOException
-
getParent
Description copied from interface:Pty
Get a handle to the parent side of the pty -
getChild
Description copied from interface:Pty
Get a handle to the child side of the pty -
close
Description copied from interface:Pty
Closes both ends of the ptyThis only closes this process's handles to the pty. For the parent end, this should be the only process with a handle. The child end may be opened by any number of other processes. More than likely, however, those processes will terminate once the parent end is closed, since reads or writes on the child will produce EOF or an error.
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePty
- Throws:
IOException
- if an I/O error occurs
-