0

I learned that syscall write to a regular file does not generate EINTR error(Why can't a write to disk be interrupted by signal?)

What about a read syscall in linux? Do "slow" devices include disk device?

(if SA_INTERRUPT is set)

Markity
  • 193
  • 8
  • @KamilCuk Sorry. I've corrected my question – Markity Jan 10 '23 at 14:14
  • 2
    It is always better to write code that is able to handle an error return value with `errno == EINTR`, even if this error will not occur under certain preconditions. Can you guarantee that the file is a regular file? This might be a duplicate of https://stackoverflow.com/q/35224048/10622916 – Bodo Jan 10 '23 at 14:24

0 Answers0