Quotes of the week
Posted Nov 28, 2009 21:13 UTC (Sat)
by oak (guest, #2786)
[Link] (1 responses)
Posted Nov 28, 2009 23:54 UTC (Sat)
by nix (subscriber, #2304)
[Link]
Quotes of the week
failure "gracefully" is quite good.
Quotes of the week
just how hard that is), then that's one thing. If you don't have a
malloc() that can inject OOM on demand, and don't use it to force your
allocations to fail individually, then error-checking them is pretty much
a waste of time, at least if you do anything but quit. (I *have* found
that reporting which allocation failed can be useful in cases where a bug
leads to runaway allocation. But there's still little point doing anything
but exit(1) afterwards. Let some higher layer in a monitoring process or
something like that handle recovery.)
