Make child_process.fork work when options.env is set.

This commit is contained in:
Cheng Zhao 2013-09-05 09:47:32 +08:00
parent 88bdff5832
commit e17da272f4
2 changed files with 10 additions and 1 deletions

View file

@ -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'

2
vendor/node vendored

@ -1 +1 @@
Subproject commit 9fc97854c9395edea096464edfb1e0a3b68145fe
Subproject commit c2ecf615ac2bb846a38ffa0b64e9ce0ff4f8953b