{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/2853","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/2853/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/2853/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/2853/events","html_url":"https://github.com/nodejs/node/issues/2853","id":106291678,"number":2853,"title":"Shouldn't the default SIGINT handler trigger process.on('exit')?","user":{"login":"ronkorving","id":631240,"avatar_url":"https://avatars.githubusercontent.com/u/631240?v=3","gravatar_id":"","url":"https://api.github.com/users/ronkorving","html_url":"https://github.com/ronkorving","followers_url":"https://api.github.com/users/ronkorving/followers","following_url":"https://api.github.com/users/ronkorving/following{/other_user}","gists_url":"https://api.github.com/users/ronkorving/gists{/gist_id}","starred_url":"https://api.github.com/users/ronkorving/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronkorving/subscriptions","organizations_url":"https://api.github.com/users/ronkorving/orgs","repos_url":"https://api.github.com/users/ronkorving/repos","events_url":"https://api.github.com/users/ronkorving/events{/privacy}","received_events_url":"https://api.github.com/users/ronkorving/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/process","name":"process","color":"00aaff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-14T08:12:48Z","updated_at":"2016-06-08T03:18:22Z","closed_at":null,"body":"Maybe it's a bug, maybe it's by design. Documentation doesn't mention anything about whether or not the \"exit\" event should fire, but it's a bit silly I have to write:\r\n\r\n```js\r\nprocess.on('SIGINT', function () {\r\n  process.exit(somecode); // now the \"exit\" event will fire\r\n});\r\n```\r\n\r\nJust because the built-in handler won't do it for me. It also means I can no longer depend on the default exit code that Node associates with SIGINT, which apparently is `128 + signal number` (according to the docs)."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/224477010","html_url":"https://github.com/nodejs/node/issues/2853#issuecomment-224477010","issue_url":"https://api.github.com/repos/nodejs/node/issues/2853","id":224477010,"user":{"login":"Trott","id":718899,"avatar_url":"https://avatars.githubusercontent.com/u/718899?v=3","gravatar_id":"","url":"https://api.github.com/users/Trott","html_url":"https://github.com/Trott","followers_url":"https://api.github.com/users/Trott/followers","following_url":"https://api.github.com/users/Trott/following{/other_user}","gists_url":"https://api.github.com/users/Trott/gists{/gist_id}","starred_url":"https://api.github.com/users/Trott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trott/subscriptions","organizations_url":"https://api.github.com/users/Trott/orgs","repos_url":"https://api.github.com/users/Trott/repos","events_url":"https://api.github.com/users/Trott/events{/privacy}","received_events_url":"https://api.github.com/users/Trott/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T03:18:21Z","updated_at":"2016-06-08T03:18:21Z","body":"It seems to me that this can be closed now that the documentation reflects what's going on, but I'm not sure @ronkorving or (especially) @reqshark would agree. Thoughts?"}}
{"actor":{"display_login":"Trott"}}