/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/echo2.js
16 строк
359 B
Unitech
start to parallelize test + no-daemon implemented + fix paths
12 июн 2016, 02:37
12 июн 2016, 02:37
9947c32
Код
Авторство
О чём код?
var http = require('http'); http.createServer(function(req, res) { res.writeHead(200); res.end('hey'); }).listen(0); process.on('message', function(msg) { if (msg == 'shutdown') { console.log('Closing all connections...'); setTimeout(function() { console.log('Finished closing connections'); process.exit(0); }, 100); } });