2 ms·
Any non-buggy fread or fwrite should retry on EINTR. But maybe not unconditionally retry. Say you got SIGTERM while waiting on network I/O and need to go flush
by tbrownaw 16y ago
Any non-buggy fread or fwrite should retry on EINTR.
But maybe not unconditionally retry. Say you got SIGTERM while waiting on network I/O and need to go flush something to disk and exit (instead of just resuming your wait or calling arbitrary code from your signal handler), or you got SIGCHLD on a subprocess and need to clean up stuff related to that.
- caf 16y agoIf you need that, you should be using the low-level read() / write() instead.