From 25e37833cae4ef6955ebcf2428b56cc0606dfa99 Mon Sep 17 00:00:00 2001 From: Sashko Stubailo Date: Thu, 15 Jan 2015 12:27:04 -0800 Subject: [PATCH] Don't use a fiber since we don't yield --- tools/cleanup.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tools/cleanup.js b/tools/cleanup.js index 832b70c957..ac1f568840 100644 --- a/tools/cleanup.js +++ b/tools/cleanup.js @@ -18,15 +18,13 @@ _.extend(exports, { }); var runHandlers = function () { - Fiber(function () { - fiberHelpers.noYieldsAllowed(function () { - var handlers = cleanup._exitHandlers; - cleanup._exitHandlers = []; - _.each(handlers, function (f) { - f(); - }); + fiberHelpers.noYieldsAllowed(function () { + var handlers = cleanup._exitHandlers; + cleanup._exitHandlers = []; + _.each(handlers, function (f) { + f(); }); - }).run(); + }); }; process.on('exit', runHandlers);