mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix uv loop hack on child_process.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user