mirror of https://github.com/nodejs/node.git
4 lines
155 B
JavaScript
4 lines
155 B
JavaScript
|
var cluster = require('cluster');
|
||
|
cluster.isMaster || process.exit(42 + cluster.worker.id); // +42 to distinguish
|
||
|
// from exit(1) for other random reasons
|