cowboy/node-exit — pull request #8 by hasankhan (2014-06-17 03:03:27+00:00)
Title: allow process.exit to be replaced

If application is using a module that calls process.exit then only way to hook up node-exit is to globally override process.exit and call exit() of node-exit but if it internally calls process.exit again then it will result in infinite recursion. To overcome this issue, we should be able to pass custom process.exit function (the original unoverriden) for use by node-exit