mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-22 15:45:35 -04:00
e27d9df431
fix error handling for pthread_sigmask(3) Errors from `pthread_sigmask(3)` were handled using `cvt()`, which expects a return value of `-1` on error and uses `errno`. However, `pthread_sigmask(3)` returns `0` on success and an error number otherwise. Fix it by replacing `cvt()` with `cvt_nz()`.