basho/riak_core — pull request #210 by russelldb (2012-07-17 20:56:28+00:00)
Title: Don't crash the cache when a stat mod crashes

See #209 for lengthy discussion

-----

Since calls to calculate stats are spawn_linked to ensure
that the calculating processes exits if the cache exits, the cache
will crash if a spawned process exits. This is bad. This change
traps_exits on spawned processes and enforms awaiting callers of
the error, without crashing the cache or effecting other registered
mods.