Reads available output: positive byte count, zero for would-block, -1 for EOF/error.
The caller owns buffer. poll_exit separately reports the child's exit status.
Signature
read_session :: (session: *Session, buffer: [] u8) -> int
Reads available output: positive byte count, zero for would-block, -1 for EOF/error.
The caller owns buffer. poll_exit separately reports the child's exit status.
read_session :: (session: *Session, buffer: [] u8) -> int