mozilla-services/circus — pull request #274 by ligthyear (2012-09-18 14:37:07+00:00)
Title: Redo Reaping so that also "unexisting" processes are cleaned up correctly.

This pull request contains a fix for the watcher. If a process dies of an unconventional signal (like SIGSEGV) it is not restarted at the moment. Even the "restart" command would not help in that case, because the process in the state of "unexisting". A state the watcher is not taking into account when reaping the processes because it is doing that outside of the actual process-class on its own way.

Aside from the implementation fixing it, this pull request contains a test killing the process with SIGSEGV and making sure the process is restarted with a new pid correctly when reaping.