[all-commits] [llvm/llvm-project] bdc011: ErrorHandling: Check for EINTR and partial writes ...

Matthias Braun via All-commits all-commits at lists.llvm.org
Wed Jul 9 11:19:43 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdc0119e1b6001be813a540134bd1772b4d9c4dc
      https://github.com/llvm/llvm-project/commit/bdc0119e1b6001be813a540134bd1772b4d9c4dc
  Author: Matthias Braun <matze at braunis.de>
  Date:   2025-07-09 (Wed, 09 Jul 2025)

  Changed paths:
    M llvm/lib/Support/ErrorHandling.cpp

  Log Message:
  -----------
  ErrorHandling: Check for EINTR and partial writes (#147595)

Calls to the posix `write` function can return -1 and set errno to
`EINTR` or perform partial writes when interrupted by signals. In those
cases applications are supposed to just try again. See for example the
documentation in glibc:
https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-write

This fixes the uses in `ErrorHandling.cpp` to retry as needed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list