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

@ -234,4 +234,7 @@ let importLoop = () => {
getNext();
};
importLoop();
module.exports = callback => {
importLoop();
setImmediate(callback);
};