{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/hxnodejs/issues/73","repository_url":"https://api.github.com/repos/HaxeFoundation/hxnodejs","labels_url":"https://api.github.com/repos/HaxeFoundation/hxnodejs/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/hxnodejs/issues/73/comments","events_url":"https://api.github.com/repos/HaxeFoundation/hxnodejs/issues/73/events","html_url":"https://github.com/HaxeFoundation/hxnodejs/issues/73","id":155877570,"number":73,"title":"[cluster] worker.process has no field pid","user":{"login":"kevinresol","id":1103788,"avatar_url":"https://avatars.githubusercontent.com/u/1103788?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinresol","html_url":"https://github.com/kevinresol","followers_url":"https://api.github.com/users/kevinresol/followers","following_url":"https://api.github.com/users/kevinresol/following{/other_user}","gists_url":"https://api.github.com/users/kevinresol/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinresol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinresol/subscriptions","organizations_url":"https://api.github.com/users/kevinresol/orgs","repos_url":"https://api.github.com/users/kevinresol/repos","events_url":"https://api.github.com/users/kevinresol/events{/privacy}","received_events_url":"https://api.github.com/users/kevinresol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-20T02:57:28Z","updated_at":"2016-05-20T09:15:51Z","closed_at":null,"body":"Compiler complains `js.node.ChildProcess has no field pid` for the following code.\r\n\r\n```haxe\r\nimport js.node.Cluster.instance as cluster;\r\nimport js.node.Cluster.ClusterEvent;\r\nimport js.node.Os;\r\n\r\nif(cluster.isMaster) {\r\n\tfor(i in 0...Os.cpus().length)\r\n\t\tcluster.fork();\r\n\tcluster.on(Online, function(worker){\r\n\t\ttrace('Worker ${worker.process.pid} is online.');\r\n\t});\r\n\tcluster.on(Exit, function(worker, exitCode, signal) {\r\n\t\ttrace('Worker ${worker.process.pid} exited with code: $exitCode ($signal)');\r\n\t});\r\n\t\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/hxnodejs/issues/comments/220556453","html_url":"https://github.com/HaxeFoundation/hxnodejs/issues/73#issuecomment-220556453","issue_url":"https://api.github.com/repos/HaxeFoundation/hxnodejs/issues/73","id":220556453,"user":{"login":"nadako","id":49749,"avatar_url":"https://avatars.githubusercontent.com/u/49749?v=3","gravatar_id":"","url":"https://api.github.com/users/nadako","html_url":"https://github.com/nadako","followers_url":"https://api.github.com/users/nadako/followers","following_url":"https://api.github.com/users/nadako/following{/other_user}","gists_url":"https://api.github.com/users/nadako/gists{/gist_id}","starred_url":"https://api.github.com/users/nadako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadako/subscriptions","organizations_url":"https://api.github.com/users/nadako/orgs","repos_url":"https://api.github.com/users/nadako/repos","events_url":"https://api.github.com/users/nadako/events{/privacy}","received_events_url":"https://api.github.com/users/nadako/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T09:15:51Z","updated_at":"2016-05-20T09:15:51Z","body":"Hmm, I think it shoud be `js.node.child_process.ChildProcess`..."}}
{"actor":{"display_login":"nadako"}}