Esc

Session

structextensionexperimentalsince 0.36.1Source
  • macOS: Session works on macOS
  • Linux: Session works on Linux
  • Windows: Session works on Windows
  • Wasm: Session works on Wasm

Declaration

Session :: struct {
// Nonblocking master descriptor, or -1 when closed.    fd: s32 = -1;// Child session leader, or -1 when no child was started.    pid: s32 = -1;// True once poll_exit has reaped the child.    exited: bool;// Native waitpid status, valid after exited becomes true.    status: s32;}

A child process and its PTY. Close with close_session; do not copy live sessions.