fzaninotto / screenshot-as-a-service

Website screenshot service powered by node.js and phantomjs
1.1k stars 243 forks source link

Webservice crashes when child process exits #43

Open daviddumon opened 10 years ago

daviddumon commented 10 years ago

Hello,

When the phantomjs child process crashes, the webservice would not correctly restarts. I've just done a small fix for that.

danigonza commented 10 years ago

Yeah I had the same problem! This solution solved Thanks!

gcrumb commented 10 years ago

This will cause exit/restart loops. Better to leave the onExit handler unchanged in startService and then in rasterizerExitHandler: