You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
This is because of https://github.com/joyent/node/blob/v0.6/lib/cluster.js#L90, the only thing you can do is:
varcluster=require('cluster');varchild=cluster.fork();// master has now been setupprocess.removeAllListeners('uncaughtException');process.on('uncaughtException',function(error){logger.error(error);});
In node 0.8 we could properly check if there are more that one event lisenter before killing the process.
I use exceptions for logging any errors in my code, but if I catch errors like this:
and then use cluster, my server crashes if exception was thrown in "master" (but logger write message).
Can I catch errors in "master" as exceptions and don't crash cluster?
The text was updated successfully, but these errors were encountered: