SafeStack: Fix thread liveness check on *BSD
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Tue, 28 Aug 2018 18:30:03 +0000 (18:30 +0000)
committerVlad Tsyrklevich <vlad@tsyrklevich.net>
Tue, 28 Aug 2018 18:30:03 +0000 (18:30 +0000)
commit03f89d3c5efa5b9e3a22b6821358088ac0ab41cb
treea15200b6cba8cced255bfc849d680ba544b4f585
parent35b1902bce8d8e1b17273983912ad57f486cdbf1
SafeStack: Fix thread liveness check on *BSD

Summary:
The Linux/BSD system call interfaces report errors differently, use the
internal_iserror() function to correctly check errors on either.

Reviewers: eugenis

Reviewed By: eugenis

Subscribers: delcypher, llvm-commits, #sanitizers, krytarowski, kcc, devnexen

Differential Revision: https://reviews.llvm.org/D51368

llvm-svn: 340856
compiler-rt/lib/safestack/safestack.cc