node-exit hack still necessary?
dylang opened this issue · comments
Dylan Greene commented
cowboy/node-exit#4 has been resolved, so I was curious if this is still needed:
// crazy hack to work around stupid node-exit
function exit(exitCode) {
clearInterval(interval);
process.emit('timegruntexit', exitCode);
exit = function () {};
}
Sindre Sorhus commented
I dunno, but it works now, no need to risk breaking it again.