News for hackers. Stuff that matters.
Re:Two things every Unix developer should know by tbrownaw on Saturday September 04, 2010 @10:12AM (#1662727)
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.

Re:Two things every Unix developer should know by caf on Saturday September 04, 2010 @10:30AM (#1662755)
If you need that, you should be using the low-level read() / write() instead.