From: Cheng Zhao Date: Thu, 5 Sep 2013 01:47:32 +0000 (+0800) Subject: Make child_process.fork work when options.env is set. X-Git-Tag: v0.4.4~5^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e17da272f48defda24523119959b8022c27e3566;p=electron.git Make child_process.fork work when options.env is set. --- diff --git a/spec/node/child_process.coffee b/spec/node/child_process.coffee index fdffb105..6d0c1dbe 100644 --- a/spec/node/child_process.coffee +++ b/spec/node/child_process.coffee @@ -19,3 +19,12 @@ describe 'child_process', -> assert.equal msg, 'message' done() child.send 'message' + + it 'should work in forked process when options.env is specifed', (done) -> + child = child_process.fork path.join(fixtures, 'module', 'fork_ping.js'), + [], + env: {test: 'somevar'} + child.on 'message', (msg) -> + assert.equal msg, 'message' + done() + child.send 'message' diff --git a/vendor/node b/vendor/node index 9fc97854..c2ecf615 160000 --- a/vendor/node +++ b/vendor/node @@ -1 +1 @@ -Subproject commit 9fc97854c9395edea096464edfb1e0a3b68145fe +Subproject commit c2ecf615ac2bb846a38ffa0b64e9ce0ff4f8953b