-
Notifications
You must be signed in to change notification settings - Fork 7.3k
On windows, if you spawn a child process, it raises an exception when outputting anything #1899
Comments
if I remember correctly (from irc), this issue also prevents 'vows test/*.js' to be run on windows, since vows spawns a child process for each test file to be handled and parses the output to determine pass/failure of the test. |
Actually, it prevents @piscisaureus Would a test case be useful for you? I guess we want a regress for this anyway. |
you may not use 'process' as a variable name.try like this
|
@bombworm This has been confirmed with this test case and it's not a result of using |
Thanks for your comment, bombworm, but have your tried it yourself? console.log('hello from parent') var child = require('child_process').spawn("node", ["child.js"]) child.stdout.addListener('data', function (data) { require('util').print(data) process.stdout.write(data) }) // Error: write EINVAL child.stderr.addListener('data', function (data) { require('util').print(data) }) |
@kuchumovN I tried on windows with node 0.5.10 and no error appeared |
@bombworm |
Try to run this example on Node 0.5.9:
node parent
parent.js:
child.js:
The child process crashes with "Error: write EINVAL" exception.
The text was updated successfully, but these errors were encountered: