Allow starting as root and downgrading once the server is listening

This commit is contained in:
Andris Reinman 2016-04-15 21:40:59 -07:00
parent b444440d65
commit b7e943d90e
8 changed files with 79 additions and 17 deletions

View file

@ -294,4 +294,7 @@ let sendLoop = () => {
});
};
sendLoop();
module.exports = callback => {
sendLoop();
setImmediate(callback);
};