diff options
| author | Ralf Sager <rsa@3fnc.org> | 2022-01-31 23:09:26 +0100 |
|---|---|---|
| committer | Ralf Sager <rsa@3fnc.org> | 2022-01-31 23:09:26 +0100 |
| commit | c492355aa5282522f8653a4517506a9c0be31164 (patch) | |
| tree | d35ee68ac7bb143e8ca9a3774c95407cfbbdab64 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | bbad745a688c933a43d1bd977756bd6fc7f034f2 (diff) | |
| download | rust-c492355aa5282522f8653a4517506a9c0be31164.tar.gz rust-c492355aa5282522f8653a4517506a9c0be31164.zip | |
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
