{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/5036","labels_url":"https://api.github.com/repos/nodejs/node/issues/5036/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/5036/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/5036/events","html_url":"https://github.com/nodejs/node/pull/5036","id":130583872,"number":5036,"title":"child_process: fix data loss with readable event","user":{"login":"mscdex","id":54666,"avatar_url":"https://avatars.githubusercontent.com/u/54666?v=3","gravatar_id":"","url":"https://api.github.com/users/mscdex","html_url":"https://github.com/mscdex","followers_url":"https://api.github.com/users/mscdex/followers","following_url":"https://api.github.com/users/mscdex/following{/other_user}","gists_url":"https://api.github.com/users/mscdex/gists{/gist_id}","starred_url":"https://api.github.com/users/mscdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscdex/subscriptions","organizations_url":"https://api.github.com/users/mscdex/orgs","repos_url":"https://api.github.com/users/mscdex/repos","events_url":"https://api.github.com/users/mscdex/events{/privacy}","received_events_url":"https://api.github.com/users/mscdex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/child_process","name":"child_process","color":"f7c6c7"},{"url":"https://api.github.com/repos/nodejs/node/labels/lts-watch-v4.x","name":"lts-watch-v4.x","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T05:58:09Z","updated_at":"2016-02-02T06:01:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/5036","html_url":"https://github.com/nodejs/node/pull/5036","diff_url":"https://github.com/nodejs/node/pull/5036.diff","patch_url":"https://github.com/nodejs/node/pull/5036.patch"},"body":"This commit prevents child process stdio streams from being automatically flushed on child process exit/close if a 'readable' event handler has been attached at the time of exit.\r\n\r\nWithout this, child process stdio data can be lost if the process exits quickly and a `read()` (e.g. from a 'readable' handler) hasn't had the chance to get called yet.\r\n\r\nFixes: https://github.com/nodejs/node/issues/5034"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/178390808","html_url":"https://github.com/nodejs/node/pull/5036#issuecomment-178390808","issue_url":"https://api.github.com/repos/nodejs/node/issues/5036","id":178390808,"user":{"login":"mscdex","id":54666,"avatar_url":"https://avatars.githubusercontent.com/u/54666?v=3","gravatar_id":"","url":"https://api.github.com/users/mscdex","html_url":"https://github.com/mscdex","followers_url":"https://api.github.com/users/mscdex/followers","following_url":"https://api.github.com/users/mscdex/following{/other_user}","gists_url":"https://api.github.com/users/mscdex/gists{/gist_id}","starred_url":"https://api.github.com/users/mscdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscdex/subscriptions","organizations_url":"https://api.github.com/users/mscdex/orgs","repos_url":"https://api.github.com/users/mscdex/repos","events_url":"https://api.github.com/users/mscdex/events{/privacy}","received_events_url":"https://api.github.com/users/mscdex/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T06:01:43Z","updated_at":"2016-02-02T06:01:43Z","body":"I'm tagging this for LTS since the problem is also present in v4.x.\r\n\r\nIt's also a problem with v0.12.9, but the fix may be different -- I haven't looked yet."}}