xonsh.procs.pipes¶
Pipe channel for single-owner fd management.
- class xonsh.procs.pipes.PipeChannel(read_fd, write_fd)[source]¶
Single-owner pipe fd manager. Owner creates the pipe and is responsible for closing both ends. Consumers get non-owning wrappers via open_writer() / open_reader().
- classmethod from_pty()[source]¶
Create a PipeChannel from pty.openpty().
Falls back to os.pipe() if PTY devices are exhausted.
- property read_fd¶
- property write_fd¶