mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 20:56:12 +00:00
scm_sendmsg() and scm_recvmsg() return negative errors derived from errnos that are normally positive. When constructing errno::Error from these error codes we should convert them back into positive values for error codes to make proper sense. TEST=cargo test --features plugin; cargo test -p sys_util BUG=None Change-Id: Ibf9065b72602e43cb6badd06f85044329d714276 Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/940562 Reviewed-by: Zach Reizner <zachr@chromium.org> |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml | ||
sock_ctrl_msg.c |