Skip to content
Snippets Groups Projects
Commit 73a63ef5 authored by Alexander van Amesfoort's avatar Alexander van Amesfoort
Browse files

Task #4643: use THROW_SYSCALL() macro instead of 'throw...

Task #4643: use THROW_SYSCALL() macro instead of 'throw SystemCallException(...)' to ensure that errno is loaded immediately and not after it was possible clobbered by string() or Backtrace(). Replace open-coded version in a few instances where the problem had already bitten. Note that all pthread_*() do not set errno, but return it (or 0), so keep those as-is. Fix up errno passing of pthread_kill() in this regard.
parent 8b6b93b4
No related branches found
No related tags found
No related merge requests found
Showing
with 65 additions and 66 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment