{"action":"created","issue":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/302","labels_url":"https://api.github.com/repos/jxcore/jxcore/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/jxcore/jxcore/issues/302/comments","events_url":"https://api.github.com/repos/jxcore/jxcore/issues/302/events","html_url":"https://github.com/jxcore/jxcore/issues/302","id":68846355,"number":302,"title":" EADDRINUSE issue when run compiled package","user":{"login":"ArifRathod","id":8307156,"avatar_url":"https://avatars.githubusercontent.com/u/8307156?v=3","gravatar_id":"","url":"https://api.github.com/users/ArifRathod","html_url":"https://github.com/ArifRathod","followers_url":"https://api.github.com/users/ArifRathod/followers","following_url":"https://api.github.com/users/ArifRathod/following{/other_user}","gists_url":"https://api.github.com/users/ArifRathod/gists{/gist_id}","starred_url":"https://api.github.com/users/ArifRathod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArifRathod/subscriptions","organizations_url":"https://api.github.com/users/ArifRathod/orgs","repos_url":"https://api.github.com/users/ArifRathod/repos","events_url":"https://api.github.com/users/ArifRathod/events{/privacy}","received_events_url":"https://api.github.com/users/ArifRathod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-16T05:11:51Z","updated_at":"2015-04-16T11:35:10Z","closed_at":null,"body":"step 1- i make an sample node app which is run on some port using express\r\n\r\nstep2 :- jx package index.js hello world -native  \r\nusing this command turn into executable package\r\n\r\nstep 3: - if i run this in node using child process from another node app\r\nhere is the code snnipet: -\r\n\r\n    var exec = require('child_process').exec;\r\n    var command = \"./hello world\r\n    var child = exec(command);\r\n    child.stdout.on('data', function (data) {\r\n    });\r\n    child.stderr.on('data', function (data) {\r\n    });\r\n    child.on('close', function (code) {\r\n    });\r\n\r\nstep 4: - if i this executable package from another node app using child process then its run every time \r\nso thats why its give me error= \" EADDRINUSE, Address already in use - Kill server \"\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/comments/93713510","html_url":"https://github.com/jxcore/jxcore/issues/302#issuecomment-93713510","issue_url":"https://api.github.com/repos/jxcore/jxcore/issues/302","id":93713510,"user":{"login":"ArifRathod","id":8307156,"avatar_url":"https://avatars.githubusercontent.com/u/8307156?v=3","gravatar_id":"","url":"https://api.github.com/users/ArifRathod","html_url":"https://github.com/ArifRathod","followers_url":"https://api.github.com/users/ArifRathod/followers","following_url":"https://api.github.com/users/ArifRathod/following{/other_user}","gists_url":"https://api.github.com/users/ArifRathod/gists{/gist_id}","starred_url":"https://api.github.com/users/ArifRathod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArifRathod/subscriptions","organizations_url":"https://api.github.com/users/ArifRathod/orgs","repos_url":"https://api.github.com/users/ArifRathod/repos","events_url":"https://api.github.com/users/ArifRathod/events{/privacy}","received_events_url":"https://api.github.com/users/ArifRathod/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T11:35:10Z","updated_at":"2015-04-16T11:35:10Z","body":"Or perhaps you mean, that you're calling the second exec(\"./helloworld\") after\nthe first one was supposed to be closed/terminated?\n\nyes its not terminate when i am calling second time ,child process doesnt\nemit close/exist event when i am using executables package\n\nso thats why its gives everytime EADDERINUSE error\n\nhow to prevent this......\n\nOn Thu, Apr 16, 2015 at 3:34 PM, Krzysztof Trzeciak <\nnotifications@github.com> wrote:\n\n> Or perhaps you mean, that you're calling the second exec(\"./helloworld\")\n> after the first one was supposed to be closed/terminated?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jxcore/jxcore/issues/302#issuecomment-93698256>.\n>\n\n\n\n-- \n <https://www.freelancer.in/affiliates/email/7415991/>\nArif Aathod <https://www.freelancer.in/affiliates/email/7415991/>\n\nFullStack javascript Developer with MEAN.IO\n\n*M:* 9978350327\n\n*E:* arifrathod7@gmail.com\n*A:*\n\n419/1,sector=13-A, Gandhinagar, 382016, IN\n Hire me on Freelancer.com\n<https://www.freelancer.in/affiliates/email/7415991/>\n"}}