alexscheelmeyer/node-phantom — pull request #55 by vmeurisse (2013-06-03 00:38:31+00:00)
Title: Better handling of phantom crashes

Previous code was checking for `code !== 0 && signal === null`. When phantomjs crash on my machine (debian testing, phantom 1.8.2), `code` is `0` and `signal` is `SIGSEGV`.

New code is more pragmatic. If phantom exit for any reason, we need to shutdown the server.