Hacker News new | ask | show | jobs
by BobbyTables2 842 days ago
Until one writes a nontrivial program that properly handles -EINTR errors on every possible point, I don’t anyone should brag about their error handing prowess.

It is also hard to handle errors more meaningfully than instantly terminating the process at the first whif of something going sideways.

And once you do write such a thing, try making automated tests to exercise it!!

How many programs actually check the return value of close() ?

Sure, this sounds a bit Linux/POSIX specific. There are only a few billion devises running such code, perhaps I’m overreacting…