{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/nodejstools/issues/575","labels_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/575/comments","events_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/575/events","html_url":"https://github.com/Microsoft/nodejstools/issues/575","id":114353655,"number":575,"title":"Node.js app with child_process fork() call failes with Error: listen EADDRINUSE","user":{"login":"eljamaki01","id":6226220,"avatar_url":"https://avatars.githubusercontent.com/u/6226220?v=3","gravatar_id":"","url":"https://api.github.com/users/eljamaki01","html_url":"https://github.com/eljamaki01","followers_url":"https://api.github.com/users/eljamaki01/followers","following_url":"https://api.github.com/users/eljamaki01/following{/other_user}","gists_url":"https://api.github.com/users/eljamaki01/gists{/gist_id}","starred_url":"https://api.github.com/users/eljamaki01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eljamaki01/subscriptions","organizations_url":"https://api.github.com/users/eljamaki01/orgs","repos_url":"https://api.github.com/users/eljamaki01/repos","events_url":"https://api.github.com/users/eljamaki01/events{/privacy}","received_events_url":"https://api.github.com/users/eljamaki01/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/nodejstools/labels/debugging","name":"debugging","color":"dff0ff"},{"url":"https://api.github.com/repos/Microsoft/nodejstools/labels/external","name":"external","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-30T20:50:47Z","updated_at":"2015-11-16T05:33:29Z","closed_at":"2015-11-16T05:33:29Z","body":"Debugger listening on port 5858\r\n Error: listen EADDRINUSE\r\n     at exports._errnoException (util.js:746:11)\r\n     at Agent.Server._listen2 (net.js:1146:14)\r\n     at listen (net.js:1172:10)\r\n     at Agent.Server.listen (net.js:1257:5)\r\n     at Object.start (_debugger_agent.js:20:9)\r\n     at startup (node.js:86:9)\r\n     at node.js:814:3\r\n\r\nI have two files, the app.js file, and the code that the forked process will be running in sub.js. I copied this direcly from the official Node.js documentation -  https://nodejs.org/api/child_process.html#child_process_child_send_message_sendhandle_callback\r\n\r\n// app.js\r\n var cp = require('child_process');\r\n\r\nvar n = cp.fork(__dirname + '/sub.js');\r\n\r\nn.on('message', function(m) {\r\n   console.log('PARENT got message:', m);\r\n });\r\n\r\nn.send({ hello: 'world' });\r\n\r\n// sub.js\r\n process.on('message', function(m) {\r\n   console.log('CHILD got message:', m);\r\n });\r\n\r\nprocess.send({ foo: 'bar' });\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/nodejstools/issues/comments/156919777","html_url":"https://github.com/Microsoft/nodejstools/issues/575#issuecomment-156919777","issue_url":"https://api.github.com/repos/Microsoft/nodejstools/issues/575","id":156919777,"user":{"login":"mousetraps","id":762848,"avatar_url":"https://avatars.githubusercontent.com/u/762848?v=3","gravatar_id":"","url":"https://api.github.com/users/mousetraps","html_url":"https://github.com/mousetraps","followers_url":"https://api.github.com/users/mousetraps/followers","following_url":"https://api.github.com/users/mousetraps/following{/other_user}","gists_url":"https://api.github.com/users/mousetraps/gists{/gist_id}","starred_url":"https://api.github.com/users/mousetraps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mousetraps/subscriptions","organizations_url":"https://api.github.com/users/mousetraps/orgs","repos_url":"https://api.github.com/users/mousetraps/repos","events_url":"https://api.github.com/users/mousetraps/events{/privacy}","received_events_url":"https://api.github.com/users/mousetraps/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T05:33:29Z","updated_at":"2015-11-16T05:33:29Z","body":"Closing this, as it appears to be a Node.js issue, rather than an NTVS issue."}}