{"action":"opened","issue":{"number":1899,"created_at":"2011-10-16T22:43:44Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Try to run this example on Node 0.5.9:\r\n\r\nnode parent\r\n\r\nparent.js:\r\n<code>\r\nconsole.log('hello from parent')\r\n\r\nvar process = require('child_process').spawn(\"node\", [\"child.js\"])\r\n\r\nprocess.stdout.addListener('data', function (data) {\r\n\trequire('sys').print(data)\r\n\tprocess.stdout.write(data)\r\n})\r\n\r\n// Error: write EINVAL\r\nprocess.stderr.addListener('data', function (data) {\r\n\trequire('sys').print(data)\r\n})\r\n</code>\r\n\r\nchild.js:\r\n<code>\r\nconsole.log('hello from child')\r\n</code>\r\n\r\nThe child process crashes with \"Error: write EINVAL\" exception.","comments":0,"title":"On windows, if you spawn a child process, it raises an exception when outputting anything","updated_at":"2011-10-16T22:43:44Z","url":"https://api.github.com/repos/joyent/node/issues/1899","id":1923654,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"35749af5393a822ecd267106ee1f6715","avatar_url":"https://secure.gravatar.com/avatar/35749af5393a822ecd267106ee1f6715?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/kuchumovn","id":477167,"login":"kuchumovn"},"html_url":"https://github.com/joyent/node/issues/1899","labels":[],"state":"open"},"legacy":{"number":1899,"action":"opened","issue":1923654}}