about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-17 22:54:55 +0000
committerbors <bors@rust-lang.org>2022-04-17 22:54:55 +0000
commite27d9df4319bd822e64f620676543d31e9c7ae2c (patch)
treea4047a4be0f46c929032000d5a77a61fde0fa7b4 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentec77f252434a532fdb5699ae4f21a3072d211edd (diff)
parente6aafbc70781bd346c6363a166641baa4f224a14 (diff)
downloadrust-e27d9df4319bd822e64f620676543d31e9c7ae2c.tar.gz
rust-e27d9df4319bd822e64f620676543d31e9c7ae2c.zip
Auto merge of #93530 - anonion0:pthread_sigmask_fix, r=JohnTitor
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()`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions