Skip to content
Snippets Groups Projects
  • Alexander van Amesfoort's avatar
    73a63ef5
    Task #4643: use THROW_SYSCALL() macro instead of 'throw... · 73a63ef5
    Alexander van Amesfoort authored
    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.
    73a63ef5
    History
    Task #4643: use THROW_SYSCALL() macro instead of 'throw...
    Alexander van Amesfoort authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.