pub fn finish(code: u8) -> u8Expand description
The exit code once the command is over: code, unless a write failed.
Flushes stdout (so a failure of the last, unterminated line is seen too).
A broken pipe leaves code alone. Any other write error on either stream
makes an exit 0 an exit 1, and one on stdout is also reported on stderr.