{"action":"opened","number":1752,"pull_request":{"url":"https://api.github.com/repos/mochajs/mocha/pulls/1752","id":37928996,"html_url":"https://github.com/mochajs/mocha/pull/1752","diff_url":"https://github.com/mochajs/mocha/pull/1752.diff","patch_url":"https://github.com/mochajs/mocha/pull/1752.patch","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/1752","number":1752,"state":"open","locked":false,"title":"Stop runner sending SIGINT to itself from within SIGINT handler","user":{"login":"gsilk","id":732858,"avatar_url":"https://avatars.githubusercontent.com/u/732858?v=3","gravatar_id":"","url":"https://api.github.com/users/gsilk","html_url":"https://github.com/gsilk","followers_url":"https://api.github.com/users/gsilk/followers","following_url":"https://api.github.com/users/gsilk/following{/other_user}","gists_url":"https://api.github.com/users/gsilk/gists{/gist_id}","starred_url":"https://api.github.com/users/gsilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsilk/subscriptions","organizations_url":"https://api.github.com/users/gsilk/orgs","repos_url":"https://api.github.com/users/gsilk/repos","events_url":"https://api.github.com/users/gsilk/events{/privacy}","received_events_url":"https://api.github.com/users/gsilk/received_events","type":"User","site_admin":false},"body":"This prevents an infinite loop when the child process (the target of the runner, ie your tests) installs a SIGINT / SIGTERM handler. You might want to do this, for example, if you need to ensure clean shutdown of your tests when the user presses Ctrl+C. I ran into this problem when spawning a subprocess from the setup portion of my tests, and trying to capture SIGINT in the test suite.","created_at":"2015-06-17T18:00:07Z","updated_at":"2015-06-17T18:00:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mochajs/mocha/pulls/1752/commits","review_comments_url":"https://api.github.com/repos/mochajs/mocha/pulls/1752/comments","review_comment_url":"https://api.github.com/repos/mochajs/mocha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1752/comments","statuses_url":"https://api.github.com/repos/mochajs/mocha/statuses/8b382354c55cc0e0695e4fbcb6b32d05fbe073fc","head":{"label":"gsilk:master","ref":"master","sha":"8b382354c55cc0e0695e4fbcb6b32d05fbe073fc","user":{"login":"gsilk","id":732858,"avatar_url":"https://avatars.githubusercontent.com/u/732858?v=3","gravatar_id":"","url":"https://api.github.com/users/gsilk","html_url":"https://github.com/gsilk","followers_url":"https://api.github.com/users/gsilk/followers","following_url":"https://api.github.com/users/gsilk/following{/other_user}","gists_url":"https://api.github.com/users/gsilk/gists{/gist_id}","starred_url":"https://api.github.com/users/gsilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsilk/subscriptions","organizations_url":"https://api.github.com/users/gsilk/orgs","repos_url":"https://api.github.com/users/gsilk/repos","events_url":"https://api.github.com/users/gsilk/events{/privacy}","received_events_url":"https://api.github.com/users/gsilk/received_events","type":"User","site_admin":false},"repo":{"id":37611227,"name":"mocha","full_name":"gsilk/mocha","owner":{"login":"gsilk","id":732858,"avatar_url":"https://avatars.githubusercontent.com/u/732858?v=3","gravatar_id":"","url":"https://api.github.com/users/gsilk","html_url":"https://github.com/gsilk","followers_url":"https://api.github.com/users/gsilk/followers","following_url":"https://api.github.com/users/gsilk/following{/other_user}","gists_url":"https://api.github.com/users/gsilk/gists{/gist_id}","starred_url":"https://api.github.com/users/gsilk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsilk/subscriptions","organizations_url":"https://api.github.com/users/gsilk/orgs","repos_url":"https://api.github.com/users/gsilk/repos","events_url":"https://api.github.com/users/gsilk/events{/privacy}","received_events_url":"https://api.github.com/users/gsilk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gsilk/mocha","description":"mocha - simple, flexible, fun javascript test framework for node.js & the browser. (BDD, TDD, QUnit styles via interfaces)","fork":true,"url":"https://api.github.com/repos/gsilk/mocha","forks_url":"https://api.github.com/repos/gsilk/mocha/forks","keys_url":"https://api.github.com/repos/gsilk/mocha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gsilk/mocha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gsilk/mocha/teams","hooks_url":"https://api.github.com/repos/gsilk/mocha/hooks","issue_events_url":"https://api.github.com/repos/gsilk/mocha/issues/events{/number}","events_url":"https://api.github.com/repos/gsilk/mocha/events","assignees_url":"https://api.github.com/repos/gsilk/mocha/assignees{/user}","branches_url":"https://api.github.com/repos/gsilk/mocha/branches{/branch}","tags_url":"https://api.github.com/repos/gsilk/mocha/tags","blobs_url":"https://api.github.com/repos/gsilk/mocha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gsilk/mocha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gsilk/mocha/git/refs{/sha}","trees_url":"https://api.github.com/repos/gsilk/mocha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gsilk/mocha/statuses/{sha}","languages_url":"https://api.github.com/repos/gsilk/mocha/languages","stargazers_url":"https://api.github.com/repos/gsilk/mocha/stargazers","contributors_url":"https://api.github.com/repos/gsilk/mocha/contributors","subscribers_url":"https://api.github.com/repos/gsilk/mocha/subscribers","subscription_url":"https://api.github.com/repos/gsilk/mocha/subscription","commits_url":"https://api.github.com/repos/gsilk/mocha/commits{/sha}","git_commits_url":"https://api.github.com/repos/gsilk/mocha/git/commits{/sha}","comments_url":"https://api.github.com/repos/gsilk/mocha/comments{/number}","issue_comment_url":"https://api.github.com/repos/gsilk/mocha/issues/comments{/number}","contents_url":"https://api.github.com/repos/gsilk/mocha/contents/{+path}","compare_url":"https://api.github.com/repos/gsilk/mocha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gsilk/mocha/merges","archive_url":"https://api.github.com/repos/gsilk/mocha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gsilk/mocha/downloads","issues_url":"https://api.github.com/repos/gsilk/mocha/issues{/number}","pulls_url":"https://api.github.com/repos/gsilk/mocha/pulls{/number}","milestones_url":"https://api.github.com/repos/gsilk/mocha/milestones{/number}","notifications_url":"https://api.github.com/repos/gsilk/mocha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gsilk/mocha/labels{/name}","releases_url":"https://api.github.com/repos/gsilk/mocha/releases{/id}","created_at":"2015-06-17T17:52:16Z","updated_at":"2015-06-17T17:52:18Z","pushed_at":"2015-06-17T17:55:35Z","git_url":"git://github.com/gsilk/mocha.git","ssh_url":"git@github.com:gsilk/mocha.git","clone_url":"https://github.com/gsilk/mocha.git","svn_url":"https://github.com/gsilk/mocha","homepage":"http://mochajs.org","size":12690,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mochajs:master","ref":"master","sha":"44b0045463907b1d7963a2e9560c24d9552aac5d","user":{"login":"mochajs","id":8770005,"avatar_url":"https://avatars.githubusercontent.com/u/8770005?v=3","gravatar_id":"","url":"https://api.github.com/users/mochajs","html_url":"https://github.com/mochajs","followers_url":"https://api.github.com/users/mochajs/followers","following_url":"https://api.github.com/users/mochajs/following{/other_user}","gists_url":"https://api.github.com/users/mochajs/gists{/gist_id}","starred_url":"https://api.github.com/users/mochajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mochajs/subscriptions","organizations_url":"https://api.github.com/users/mochajs/orgs","repos_url":"https://api.github.com/users/mochajs/repos","events_url":"https://api.github.com/users/mochajs/events{/privacy}","received_events_url":"https://api.github.com/users/mochajs/received_events","type":"Organization","site_admin":false},"repo":{"id":1451352,"name":"mocha","full_name":"mochajs/mocha","owner":{"login":"mochajs","id":8770005,"avatar_url":"https://avatars.githubusercontent.com/u/8770005?v=3","gravatar_id":"","url":"https://api.github.com/users/mochajs","html_url":"https://github.com/mochajs","followers_url":"https://api.github.com/users/mochajs/followers","following_url":"https://api.github.com/users/mochajs/following{/other_user}","gists_url":"https://api.github.com/users/mochajs/gists{/gist_id}","starred_url":"https://api.github.com/users/mochajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mochajs/subscriptions","organizations_url":"https://api.github.com/users/mochajs/orgs","repos_url":"https://api.github.com/users/mochajs/repos","events_url":"https://api.github.com/users/mochajs/events{/privacy}","received_events_url":"https://api.github.com/users/mochajs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mochajs/mocha","description":"mocha - simple, flexible, fun javascript test framework for node.js & the browser. (BDD, TDD, QUnit styles via interfaces)","fork":false,"url":"https://api.github.com/repos/mochajs/mocha","forks_url":"https://api.github.com/repos/mochajs/mocha/forks","keys_url":"https://api.github.com/repos/mochajs/mocha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mochajs/mocha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mochajs/mocha/teams","hooks_url":"https://api.github.com/repos/mochajs/mocha/hooks","issue_events_url":"https://api.github.com/repos/mochajs/mocha/issues/events{/number}","events_url":"https://api.github.com/repos/mochajs/mocha/events","assignees_url":"https://api.github.com/repos/mochajs/mocha/assignees{/user}","branches_url":"https://api.github.com/repos/mochajs/mocha/branches{/branch}","tags_url":"https://api.github.com/repos/mochajs/mocha/tags","blobs_url":"https://api.github.com/repos/mochajs/mocha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mochajs/mocha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mochajs/mocha/git/refs{/sha}","trees_url":"https://api.github.com/repos/mochajs/mocha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mochajs/mocha/statuses/{sha}","languages_url":"https://api.github.com/repos/mochajs/mocha/languages","stargazers_url":"https://api.github.com/repos/mochajs/mocha/stargazers","contributors_url":"https://api.github.com/repos/mochajs/mocha/contributors","subscribers_url":"https://api.github.com/repos/mochajs/mocha/subscribers","subscription_url":"https://api.github.com/repos/mochajs/mocha/subscription","commits_url":"https://api.github.com/repos/mochajs/mocha/commits{/sha}","git_commits_url":"https://api.github.com/repos/mochajs/mocha/git/commits{/sha}","comments_url":"https://api.github.com/repos/mochajs/mocha/comments{/number}","issue_comment_url":"https://api.github.com/repos/mochajs/mocha/issues/comments{/number}","contents_url":"https://api.github.com/repos/mochajs/mocha/contents/{+path}","compare_url":"https://api.github.com/repos/mochajs/mocha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mochajs/mocha/merges","archive_url":"https://api.github.com/repos/mochajs/mocha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mochajs/mocha/downloads","issues_url":"https://api.github.com/repos/mochajs/mocha/issues{/number}","pulls_url":"https://api.github.com/repos/mochajs/mocha/pulls{/number}","milestones_url":"https://api.github.com/repos/mochajs/mocha/milestones{/number}","notifications_url":"https://api.github.com/repos/mochajs/mocha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mochajs/mocha/labels{/name}","releases_url":"https://api.github.com/repos/mochajs/mocha/releases{/id}","created_at":"2011-03-07T18:44:25Z","updated_at":"2015-06-17T14:01:06Z","pushed_at":"2015-06-17T10:07:17Z","git_url":"git://github.com/mochajs/mocha.git","ssh_url":"git@github.com:mochajs/mocha.git","clone_url":"https://github.com/mochajs/mocha.git","svn_url":"https://github.com/mochajs/mocha","homepage":"http://mochajs.org","size":12690,"stargazers_count":6847,"watchers_count":6847,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1068,"mirror_url":null,"open_issues_count":157,"forks":1068,"open_issues":157,"watchers":6847,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mochajs/mocha/pulls/1752"},"html":{"href":"https://github.com/mochajs/mocha/pull/1752"},"issue":{"href":"https://api.github.com/repos/mochajs/mocha/issues/1752"},"comments":{"href":"https://api.github.com/repos/mochajs/mocha/issues/1752/comments"},"review_comments":{"href":"https://api.github.com/repos/mochajs/mocha/pulls/1752/comments"},"review_comment":{"href":"https://api.github.com/repos/mochajs/mocha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mochajs/mocha/pulls/1752/commits"},"statuses":{"href":"https://api.github.com/repos/mochajs/mocha/statuses/8b382354c55cc0e0695e4fbcb6b32d05fbe073fc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":0,"deletions":1,"changed_files":1}}