Hacker News new | ask | show | jobs
by loeg 2229 days ago
Well, or EINTR if your signal handlers are not SA_RESTART.
1 comments

For EINTR it never returns a short read, as the only way to see EINTR is a return of -1 with errno==EINTR.

We handle signals fine.

Sure, I was imprecise. A signal can cause a read to return a short result.