From 1d7445c5aa97511002c6a8e956acf1be6d5e2ff1 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 18 Jan 2014 17:01:30 +0800 Subject: [PATCH] Fix uv loop hack on child_process. --- common/lib/init.coffee | 7 ------- 1 file changed, 7 deletions(-) diff --git a/common/lib/init.coffee b/common/lib/init.coffee index 48c1b29424ea..20d468ee62f7 100644 --- a/common/lib/init.coffee +++ b/common/lib/init.coffee @@ -19,10 +19,3 @@ wrapWithActivateUvLoop = (func) -> process.nextTick = wrapWithActivateUvLoop process.nextTick global.setImmediate = wrapWithActivateUvLoop timers.setImmediate global.clearImmediate = timers.clearImmediate - -# The child_process module also needs to activate the uv loop to make the ipc -# channel setup. -# TODO(zcbenz): Find out why this is needed. -childProcess = require 'child_process' -childProcess.spawn = wrapWithActivateUvLoop childProcess.spawn -childProcess.fork = wrapWithActivateUvLoop childProcess.fork