/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/misc-examples/exit.js
27 строк
529 B
Peter Dave Hello
fix: remove trailing spaces
02 июл 2018, 15:34
02 июл 2018, 15:34
5c11598
Код
Авторство
О чём код?
// 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');