sensu/sensu — pull request #455 by n1k (2013-01-30 13:29:15+00:00)
Title: Fix for sensu server zombies after upgrade to 0.9.9

Hi,
after upgrade to sensu 0.9.9 sensu-server was genereating tons of zomobies and it was causing crash of whole system due to lack of memory leading to swapping and oom-killer events, etc...
It's necessary to handle all exceptions when running subprocesses, not only Timeout:Error. It's necessary to kill and wait to process in any case to prevent zombies. Handlers can be third party scripts or path can with error, so you can't expect any exact behavior in this part.

How to replicate:
register and use not exisitng handler (bad path) or handler that does not open STDIN, run sensu-server and `watch 'ps axu | grep Z' `

Best wishes
Adam