{"action":"created","issue":{"url":"https://api.github.com/repos/mcollina/pino/issues/84","repository_url":"https://api.github.com/repos/mcollina/pino","labels_url":"https://api.github.com/repos/mcollina/pino/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/mcollina/pino/issues/84/comments","events_url":"https://api.github.com/repos/mcollina/pino/issues/84/events","html_url":"https://github.com/mcollina/pino/pull/84","id":175773351,"number":84,"title":"Simplify cache flushing","user":{"login":"jsumners","id":321201,"avatar_url":"https://avatars.githubusercontent.com/u/321201?v=3","gravatar_id":"","url":"https://api.github.com/users/jsumners","html_url":"https://github.com/jsumners","followers_url":"https://api.github.com/users/jsumners/followers","following_url":"https://api.github.com/users/jsumners/following{/other_user}","gists_url":"https://api.github.com/users/jsumners/gists{/gist_id}","starred_url":"https://api.github.com/users/jsumners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsumners/subscriptions","organizations_url":"https://api.github.com/users/jsumners/orgs","repos_url":"https://api.github.com/users/jsumners/repos","events_url":"https://api.github.com/users/jsumners/events{/privacy}","received_events_url":"https://api.github.com/users/jsumners/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2016-09-08T14:45:32Z","updated_at":"2016-09-14T13:52:12Z","closed_at":"2016-09-14T13:52:06Z","pull_request":{"url":"https://api.github.com/repos/mcollina/pino/pulls/84","html_url":"https://github.com/mcollina/pino/pull/84","diff_url":"https://github.com/mcollina/pino/pull/84.diff","patch_url":"https://github.com/mcollina/pino/pull/84.patch"},"body":"This commit eliminates checking the stream against `process.stdout`\r\nand `process.stderr` when flushing the cache on exit. It does so\r\nby forcing the stream into blocking mode by setting the stream's\r\ninternal `_handle` to blocking mode via the V8 `setBlocking` method.\r\n\r\nI opted to unblock the stream after writing out the cache just to be\r\ncomprehensive. I don't believe it is necessary, but I'd rather not\r\nbe the cause of the application hanging indefinitely due to some\r\nedge case as a result of the stream being in blocking mode.\r\n\r\nFixes #88."},"comment":{"url":"https://api.github.com/repos/mcollina/pino/issues/comments/247019419","html_url":"https://github.com/mcollina/pino/pull/84#issuecomment-247019419","issue_url":"https://api.github.com/repos/mcollina/pino/issues/84","id":247019419,"user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T13:52:12Z","updated_at":"2016-09-14T13:52:12Z","body":"Merged!"}}
{"actor":{"display_login":"mcollina"}}