/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/interface/child.js
16 строк
364 B
Unitech
various fixes and upgrades mainly in agent and bus system
11 июн 2016, 23:09
11 июн 2016, 23:09
832ce93
Код
Авторство
О чём код?
var http = require('http'); http.createServer(function(req, res) { res.writeHead(200); res.end('hey'); }).listen(8000); process.on('message', function(msg) { if (msg == 'shutdown') { console.log('Closing all connections...'); setTimeout(function() { console.log('Finished closing connections'); process.exit(0); }, 100); } });