From: Cheng Zhao Date: Sat, 18 Jan 2014 09:01:30 +0000 (+0800) Subject: Fix uv loop hack on child_process. X-Git-Tag: v0.9.5~1^2~22 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1d7445c5aa97511002c6a8e956acf1be6d5e2ff1;p=electron.git Fix uv loop hack on child_process. --- diff --git a/common/lib/init.coffee b/common/lib/init.coffee index 48c1b294..20d468ee 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