Skip to main content

session_from_fd

Function session_from_fd 

Source
pub fn session_from_fd(fd: OwnedFd) -> Result<Session<StubProcess, PtyStream>>
Expand description

Create an expectrl Session from a PTY controller fd.

The returned session is ready for expect, send, check etc. The StubProcess reports the process as always alive — actual lifecycle management is handled by the OCI runtime.