Fix uv loop hack on child_process.
authorCheng Zhao <zcbenz@gmail.com>
Sat, 18 Jan 2014 09:01:30 +0000 (17:01 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 18 Jan 2014 09:01:30 +0000 (17:01 +0800)
common/lib/init.coffee

index 48c1b29..20d468e 100644 (file)
@@ -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