mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
29 lines
531 B
JavaScript
29 lines
531 B
JavaScript
|
|
// process.on('exit', function() {
|
|
// console.log('About to exit.');
|
|
// });
|
|
|
|
// process.on('uncaughtException', function(err) {
|
|
// console.log('Caught exception: ' + err);
|
|
// });
|
|
|
|
// process.on('SIGINT', function() {
|
|
// console.log('Got SIGINT. Press Control-D to exit.');
|
|
// process.exit(1);
|
|
// });
|
|
|
|
var worker = require('cluster').worker;
|
|
|
|
worker.on('disconnect', function() {
|
|
console.log('exiting');
|
|
});
|
|
|
|
|
|
setInterval(function() {
|
|
}, 1);
|
|
|
|
setInterval(function() {
|
|
console.log('ok');
|
|
}, 2000);
|
|
console.log('ok');
|