Skip to content

Commit

Permalink
Make child_process.fork work when options.env is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Sep 5, 2013
1 parent 88bdff5 commit e17da27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions spec/node/child_process.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 1 addition & 1 deletion vendor/node
Submodule node updated from 9fc978 to c2ecf6

0 comments on commit e17da27

Please sign in to comment.