{"action":"closed","number":193,"pull_request":{"url":"https://api.github.com/repos/feeley/gambit/pulls/193","id":64108764,"html_url":"https://github.com/feeley/gambit/pull/193","diff_url":"https://github.com/feeley/gambit/pull/193.diff","patch_url":"https://github.com/feeley/gambit/pull/193.patch","issue_url":"https://api.github.com/repos/feeley/gambit/issues/193","number":193,"state":"closed","locked":false,"title":"Save and restore errno in sigchld_signal_handler","user":{"login":"okuoku","id":100813,"avatar_url":"https://avatars.githubusercontent.com/u/100813?v=3","gravatar_id":"","url":"https://api.github.com/users/okuoku","html_url":"https://github.com/okuoku","followers_url":"https://api.github.com/users/okuoku/followers","following_url":"https://api.github.com/users/okuoku/following{/other_user}","gists_url":"https://api.github.com/users/okuoku/gists{/gist_id}","starred_url":"https://api.github.com/users/okuoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okuoku/subscriptions","organizations_url":"https://api.github.com/users/okuoku/orgs","repos_url":"https://api.github.com/users/okuoku/repos","events_url":"https://api.github.com/users/okuoku/events{/privacy}","received_events_url":"https://api.github.com/users/okuoku/received_events","type":"User","site_admin":false},"body":"Save and restore errno in sigchld_signal_handler, just same as the example on POSIX document\r\nhttp://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html#tag_16_645_06_02\r\n\r\nIt seems Cygwin invokes signal handler just *after* setting `errno` for in-flight syscall (in #99 case, `nanosleep`) unlike other implementations. Thus, `EINTR` code for `nanosleep` always get overridden with `ECHILD` of `waitpid` call inside `sigchld_signal_handler`.\r\n\r\nThis patch essentially adds TLS access as `errno` load and store for each `sigchld_signal_handler` invocation. I don't think it would affect any of performance.\r\n\r\nIt fixes `make check` on Cygwin.","created_at":"2016-03-24T22:31:06Z","updated_at":"2016-04-24T21:07:05Z","closed_at":"2016-04-24T21:07:05Z","merged_at":"2016-04-24T21:07:05Z","merge_commit_sha":"ece67a81854fce5c60fb39fcde77e38d2f9ca7f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/feeley/gambit/pulls/193/commits","review_comments_url":"https://api.github.com/repos/feeley/gambit/pulls/193/comments","review_comment_url":"https://api.github.com/repos/feeley/gambit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/feeley/gambit/issues/193/comments","statuses_url":"https://api.github.com/repos/feeley/gambit/statuses/0d9e8398f33ad23230c3b8fb3341bf33490513b3","head":{"label":"okuoku:save-errno-in-sigchld","ref":"save-errno-in-sigchld","sha":"0d9e8398f33ad23230c3b8fb3341bf33490513b3","user":{"login":"okuoku","id":100813,"avatar_url":"https://avatars.githubusercontent.com/u/100813?v=3","gravatar_id":"","url":"https://api.github.com/users/okuoku","html_url":"https://github.com/okuoku","followers_url":"https://api.github.com/users/okuoku/followers","following_url":"https://api.github.com/users/okuoku/following{/other_user}","gists_url":"https://api.github.com/users/okuoku/gists{/gist_id}","starred_url":"https://api.github.com/users/okuoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okuoku/subscriptions","organizations_url":"https://api.github.com/users/okuoku/orgs","repos_url":"https://api.github.com/users/okuoku/repos","events_url":"https://api.github.com/users/okuoku/events{/privacy}","received_events_url":"https://api.github.com/users/okuoku/received_events","type":"User","site_admin":false},"repo":{"id":54239861,"name":"gambit","full_name":"okuoku/gambit","owner":{"login":"okuoku","id":100813,"avatar_url":"https://avatars.githubusercontent.com/u/100813?v=3","gravatar_id":"","url":"https://api.github.com/users/okuoku","html_url":"https://github.com/okuoku","followers_url":"https://api.github.com/users/okuoku/followers","following_url":"https://api.github.com/users/okuoku/following{/other_user}","gists_url":"https://api.github.com/users/okuoku/gists{/gist_id}","starred_url":"https://api.github.com/users/okuoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okuoku/subscriptions","organizations_url":"https://api.github.com/users/okuoku/orgs","repos_url":"https://api.github.com/users/okuoku/repos","events_url":"https://api.github.com/users/okuoku/events{/privacy}","received_events_url":"https://api.github.com/users/okuoku/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okuoku/gambit","description":"Gambit is an efficient implementation of the Scheme programming language.","fork":true,"url":"https://api.github.com/repos/okuoku/gambit","forks_url":"https://api.github.com/repos/okuoku/gambit/forks","keys_url":"https://api.github.com/repos/okuoku/gambit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okuoku/gambit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okuoku/gambit/teams","hooks_url":"https://api.github.com/repos/okuoku/gambit/hooks","issue_events_url":"https://api.github.com/repos/okuoku/gambit/issues/events{/number}","events_url":"https://api.github.com/repos/okuoku/gambit/events","assignees_url":"https://api.github.com/repos/okuoku/gambit/assignees{/user}","branches_url":"https://api.github.com/repos/okuoku/gambit/branches{/branch}","tags_url":"https://api.github.com/repos/okuoku/gambit/tags","blobs_url":"https://api.github.com/repos/okuoku/gambit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okuoku/gambit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okuoku/gambit/git/refs{/sha}","trees_url":"https://api.github.com/repos/okuoku/gambit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okuoku/gambit/statuses/{sha}","languages_url":"https://api.github.com/repos/okuoku/gambit/languages","stargazers_url":"https://api.github.com/repos/okuoku/gambit/stargazers","contributors_url":"https://api.github.com/repos/okuoku/gambit/contributors","subscribers_url":"https://api.github.com/repos/okuoku/gambit/subscribers","subscription_url":"https://api.github.com/repos/okuoku/gambit/subscription","commits_url":"https://api.github.com/repos/okuoku/gambit/commits{/sha}","git_commits_url":"https://api.github.com/repos/okuoku/gambit/git/commits{/sha}","comments_url":"https://api.github.com/repos/okuoku/gambit/comments{/number}","issue_comment_url":"https://api.github.com/repos/okuoku/gambit/issues/comments{/number}","contents_url":"https://api.github.com/repos/okuoku/gambit/contents/{+path}","compare_url":"https://api.github.com/repos/okuoku/gambit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okuoku/gambit/merges","archive_url":"https://api.github.com/repos/okuoku/gambit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okuoku/gambit/downloads","issues_url":"https://api.github.com/repos/okuoku/gambit/issues{/number}","pulls_url":"https://api.github.com/repos/okuoku/gambit/pulls{/number}","milestones_url":"https://api.github.com/repos/okuoku/gambit/milestones{/number}","notifications_url":"https://api.github.com/repos/okuoku/gambit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okuoku/gambit/labels{/name}","releases_url":"https://api.github.com/repos/okuoku/gambit/releases{/id}","deployments_url":"https://api.github.com/repos/okuoku/gambit/deployments","created_at":"2016-03-19T00:46:11Z","updated_at":"2016-03-19T00:46:14Z","pushed_at":"2016-04-02T09:58:47Z","git_url":"git://github.com/okuoku/gambit.git","ssh_url":"git@github.com:okuoku/gambit.git","clone_url":"https://github.com/okuoku/gambit.git","svn_url":"https://github.com/okuoku/gambit","homepage":"http://gambitscheme.org/","size":73902,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"feeley:master","ref":"master","sha":"e775099936158a9f194020785a474027923d69e7","user":{"login":"feeley","id":555673,"avatar_url":"https://avatars.githubusercontent.com/u/555673?v=3","gravatar_id":"","url":"https://api.github.com/users/feeley","html_url":"https://github.com/feeley","followers_url":"https://api.github.com/users/feeley/followers","following_url":"https://api.github.com/users/feeley/following{/other_user}","gists_url":"https://api.github.com/users/feeley/gists{/gist_id}","starred_url":"https://api.github.com/users/feeley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feeley/subscriptions","organizations_url":"https://api.github.com/users/feeley/orgs","repos_url":"https://api.github.com/users/feeley/repos","events_url":"https://api.github.com/users/feeley/events{/privacy}","received_events_url":"https://api.github.com/users/feeley/received_events","type":"User","site_admin":false},"repo":{"id":3709168,"name":"gambit","full_name":"feeley/gambit","owner":{"login":"feeley","id":555673,"avatar_url":"https://avatars.githubusercontent.com/u/555673?v=3","gravatar_id":"","url":"https://api.github.com/users/feeley","html_url":"https://github.com/feeley","followers_url":"https://api.github.com/users/feeley/followers","following_url":"https://api.github.com/users/feeley/following{/other_user}","gists_url":"https://api.github.com/users/feeley/gists{/gist_id}","starred_url":"https://api.github.com/users/feeley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feeley/subscriptions","organizations_url":"https://api.github.com/users/feeley/orgs","repos_url":"https://api.github.com/users/feeley/repos","events_url":"https://api.github.com/users/feeley/events{/privacy}","received_events_url":"https://api.github.com/users/feeley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/feeley/gambit","description":"Gambit is an efficient implementation of the Scheme programming language.","fork":false,"url":"https://api.github.com/repos/feeley/gambit","forks_url":"https://api.github.com/repos/feeley/gambit/forks","keys_url":"https://api.github.com/repos/feeley/gambit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feeley/gambit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feeley/gambit/teams","hooks_url":"https://api.github.com/repos/feeley/gambit/hooks","issue_events_url":"https://api.github.com/repos/feeley/gambit/issues/events{/number}","events_url":"https://api.github.com/repos/feeley/gambit/events","assignees_url":"https://api.github.com/repos/feeley/gambit/assignees{/user}","branches_url":"https://api.github.com/repos/feeley/gambit/branches{/branch}","tags_url":"https://api.github.com/repos/feeley/gambit/tags","blobs_url":"https://api.github.com/repos/feeley/gambit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feeley/gambit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feeley/gambit/git/refs{/sha}","trees_url":"https://api.github.com/repos/feeley/gambit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feeley/gambit/statuses/{sha}","languages_url":"https://api.github.com/repos/feeley/gambit/languages","stargazers_url":"https://api.github.com/repos/feeley/gambit/stargazers","contributors_url":"https://api.github.com/repos/feeley/gambit/contributors","subscribers_url":"https://api.github.com/repos/feeley/gambit/subscribers","subscription_url":"https://api.github.com/repos/feeley/gambit/subscription","commits_url":"https://api.github.com/repos/feeley/gambit/commits{/sha}","git_commits_url":"https://api.github.com/repos/feeley/gambit/git/commits{/sha}","comments_url":"https://api.github.com/repos/feeley/gambit/comments{/number}","issue_comment_url":"https://api.github.com/repos/feeley/gambit/issues/comments{/number}","contents_url":"https://api.github.com/repos/feeley/gambit/contents/{+path}","compare_url":"https://api.github.com/repos/feeley/gambit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feeley/gambit/merges","archive_url":"https://api.github.com/repos/feeley/gambit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feeley/gambit/downloads","issues_url":"https://api.github.com/repos/feeley/gambit/issues{/number}","pulls_url":"https://api.github.com/repos/feeley/gambit/pulls{/number}","milestones_url":"https://api.github.com/repos/feeley/gambit/milestones{/number}","notifications_url":"https://api.github.com/repos/feeley/gambit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feeley/gambit/labels{/name}","releases_url":"https://api.github.com/repos/feeley/gambit/releases{/id}","deployments_url":"https://api.github.com/repos/feeley/gambit/deployments","created_at":"2012-03-13T17:21:23Z","updated_at":"2016-04-24T15:13:12Z","pushed_at":"2016-04-24T21:07:05Z","git_url":"git://github.com/feeley/gambit.git","ssh_url":"git@github.com:feeley/gambit.git","clone_url":"https://github.com/feeley/gambit.git","svn_url":"https://github.com/feeley/gambit","homepage":"http://gambitscheme.org/","size":78297,"stargazers_count":406,"watchers_count":406,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":47,"forks":54,"open_issues":47,"watchers":406,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/feeley/gambit/pulls/193"},"html":{"href":"https://github.com/feeley/gambit/pull/193"},"issue":{"href":"https://api.github.com/repos/feeley/gambit/issues/193"},"comments":{"href":"https://api.github.com/repos/feeley/gambit/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/feeley/gambit/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/feeley/gambit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/feeley/gambit/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/feeley/gambit/statuses/0d9e8398f33ad23230c3b8fb3341bf33490513b3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"feeley","id":555673,"avatar_url":"https://avatars.githubusercontent.com/u/555673?v=3","gravatar_id":"","url":"https://api.github.com/users/feeley","html_url":"https://github.com/feeley","followers_url":"https://api.github.com/users/feeley/followers","following_url":"https://api.github.com/users/feeley/following{/other_user}","gists_url":"https://api.github.com/users/feeley/gists{/gist_id}","starred_url":"https://api.github.com/users/feeley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feeley/subscriptions","organizations_url":"https://api.github.com/users/feeley/orgs","repos_url":"https://api.github.com/users/feeley/repos","events_url":"https://api.github.com/users/feeley/events{/privacy}","received_events_url":"https://api.github.com/users/feeley/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}