sapling/eden/scm/lib/cpython-ext
Jun Wu 4e7987e9f9 cpython-ext: avoid io::Error::raw_os_error unless kind is None
Summary:
On Windows, EPIPE's raw os error might be 232, different from libc::EPIPE (32).
That means the Python world cannot check the errno properly to hide the EPIPE
error message. Fix it by reading io::ErrorKind first, and fallback to
raw_os_error.

Reviewed By: yancouto

Differential Revision: D30118006

fbshipit-source-id: b34a2142b24714e68d11a03a0771a5f9c037ed0f
2021-08-05 16:32:50 -07:00
..
src cpython-ext: avoid io::Error::raw_os_error unless kind is None 2021-08-05 16:32:50 -07:00
Cargo.toml Update several rust crate versions 2021-06-17 16:38:19 -07:00