{"action":"opened","number":105,"pull_request":{"url":"https://api.github.com/repos/nsf/termbox-go/pulls/105","id":49714920,"html_url":"https://github.com/nsf/termbox-go/pull/105","diff_url":"https://github.com/nsf/termbox-go/pull/105.diff","patch_url":"https://github.com/nsf/termbox-go/pull/105.patch","issue_url":"https://api.github.com/repos/nsf/termbox-go/issues/105","number":105,"state":"open","locked":false,"title":"Fix hang with termbox.Close() on Windows","user":{"login":"nitoyon","id":39562,"avatar_url":"https://avatars.githubusercontent.com/u/39562?v=3","gravatar_id":"","url":"https://api.github.com/users/nitoyon","html_url":"https://github.com/nitoyon","followers_url":"https://api.github.com/users/nitoyon/followers","following_url":"https://api.github.com/users/nitoyon/following{/other_user}","gists_url":"https://api.github.com/users/nitoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/nitoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitoyon/subscriptions","organizations_url":"https://api.github.com/users/nitoyon/orgs","repos_url":"https://api.github.com/users/nitoyon/repos","events_url":"https://api.github.com/users/nitoyon/events{/privacy}","received_events_url":"https://api.github.com/users/nitoyon/received_events","type":"User","site_admin":false},"body":"`termbox.Close()` hanged up when `input_comm` channel is not polled.\r\n\r\nExample Code:\r\n```go\r\npackage main\r\n\r\nimport \"github.com/nsf/termbox-go\"\r\nimport \"time\"\r\n\r\nfunc main() {\r\n\ttermbox.Init()\r\n\ttime.Sleep(1000 * time.Millisecond)\r\n\ttermbox.Close()\r\n}\r\n```\r\n\r\nResult:\r\n```console\r\n>go run test.go\r\n\r\nfatal error: all goroutines are asleep - deadlock!\r\n\r\ngoroutine 1 [chan receive]:\r\ngithub.com/nsf/termbox-go.Close()\r\n        src/github.com/nsf/termbox-go/api_windows.go:83 +0x95\r\nmain.main()\r\n        src/test.go:9 +0x31\r\n\r\ngoroutine 4 [chan send]:\r\ngithub.com/nsf/termbox-go.input_event_producer()\r\n        src/github.com/nsf/termbox-go/termbox_windows.go:782 +0x4f4\r\ncreated by github.com/nsf/termbox-go.Init\r\n        src/github.com/nsf/termbox-go/api_windows.go:68 +0x4ac\r\nexit status 2\r\n```\r\n","created_at":"2015-11-04T16:56:10Z","updated_at":"2015-11-04T16:56:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nsf/termbox-go/pulls/105/commits","review_comments_url":"https://api.github.com/repos/nsf/termbox-go/pulls/105/comments","review_comment_url":"https://api.github.com/repos/nsf/termbox-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nsf/termbox-go/issues/105/comments","statuses_url":"https://api.github.com/repos/nsf/termbox-go/statuses/010a5510e416cf7283b3a426d19e315ce84fd23f","head":{"label":"nitoyon:fix-dead-lock","ref":"fix-dead-lock","sha":"010a5510e416cf7283b3a426d19e315ce84fd23f","user":{"login":"nitoyon","id":39562,"avatar_url":"https://avatars.githubusercontent.com/u/39562?v=3","gravatar_id":"","url":"https://api.github.com/users/nitoyon","html_url":"https://github.com/nitoyon","followers_url":"https://api.github.com/users/nitoyon/followers","following_url":"https://api.github.com/users/nitoyon/following{/other_user}","gists_url":"https://api.github.com/users/nitoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/nitoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitoyon/subscriptions","organizations_url":"https://api.github.com/users/nitoyon/orgs","repos_url":"https://api.github.com/users/nitoyon/repos","events_url":"https://api.github.com/users/nitoyon/events{/privacy}","received_events_url":"https://api.github.com/users/nitoyon/received_events","type":"User","site_admin":false},"repo":{"id":45466320,"name":"termbox-go","full_name":"nitoyon/termbox-go","owner":{"login":"nitoyon","id":39562,"avatar_url":"https://avatars.githubusercontent.com/u/39562?v=3","gravatar_id":"","url":"https://api.github.com/users/nitoyon","html_url":"https://github.com/nitoyon","followers_url":"https://api.github.com/users/nitoyon/followers","following_url":"https://api.github.com/users/nitoyon/following{/other_user}","gists_url":"https://api.github.com/users/nitoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/nitoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitoyon/subscriptions","organizations_url":"https://api.github.com/users/nitoyon/orgs","repos_url":"https://api.github.com/users/nitoyon/repos","events_url":"https://api.github.com/users/nitoyon/events{/privacy}","received_events_url":"https://api.github.com/users/nitoyon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nitoyon/termbox-go","description":"Pure Go termbox implementation","fork":true,"url":"https://api.github.com/repos/nitoyon/termbox-go","forks_url":"https://api.github.com/repos/nitoyon/termbox-go/forks","keys_url":"https://api.github.com/repos/nitoyon/termbox-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nitoyon/termbox-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nitoyon/termbox-go/teams","hooks_url":"https://api.github.com/repos/nitoyon/termbox-go/hooks","issue_events_url":"https://api.github.com/repos/nitoyon/termbox-go/issues/events{/number}","events_url":"https://api.github.com/repos/nitoyon/termbox-go/events","assignees_url":"https://api.github.com/repos/nitoyon/termbox-go/assignees{/user}","branches_url":"https://api.github.com/repos/nitoyon/termbox-go/branches{/branch}","tags_url":"https://api.github.com/repos/nitoyon/termbox-go/tags","blobs_url":"https://api.github.com/repos/nitoyon/termbox-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nitoyon/termbox-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nitoyon/termbox-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/nitoyon/termbox-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nitoyon/termbox-go/statuses/{sha}","languages_url":"https://api.github.com/repos/nitoyon/termbox-go/languages","stargazers_url":"https://api.github.com/repos/nitoyon/termbox-go/stargazers","contributors_url":"https://api.github.com/repos/nitoyon/termbox-go/contributors","subscribers_url":"https://api.github.com/repos/nitoyon/termbox-go/subscribers","subscription_url":"https://api.github.com/repos/nitoyon/termbox-go/subscription","commits_url":"https://api.github.com/repos/nitoyon/termbox-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/nitoyon/termbox-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/nitoyon/termbox-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/nitoyon/termbox-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/nitoyon/termbox-go/contents/{+path}","compare_url":"https://api.github.com/repos/nitoyon/termbox-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nitoyon/termbox-go/merges","archive_url":"https://api.github.com/repos/nitoyon/termbox-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nitoyon/termbox-go/downloads","issues_url":"https://api.github.com/repos/nitoyon/termbox-go/issues{/number}","pulls_url":"https://api.github.com/repos/nitoyon/termbox-go/pulls{/number}","milestones_url":"https://api.github.com/repos/nitoyon/termbox-go/milestones{/number}","notifications_url":"https://api.github.com/repos/nitoyon/termbox-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nitoyon/termbox-go/labels{/name}","releases_url":"https://api.github.com/repos/nitoyon/termbox-go/releases{/id}","created_at":"2015-11-03T12:54:01Z","updated_at":"2015-11-03T12:54:02Z","pushed_at":"2015-11-04T16:48:33Z","git_url":"git://github.com/nitoyon/termbox-go.git","ssh_url":"git@github.com:nitoyon/termbox-go.git","clone_url":"https://github.com/nitoyon/termbox-go.git","svn_url":"https://github.com/nitoyon/termbox-go","homepage":"http://code.google.com/p/termbox","size":851,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"nsf:master","ref":"master","sha":"62033d80b58736ea31beaf43348f5147913af30e","user":{"login":"nsf","id":12567,"avatar_url":"https://avatars.githubusercontent.com/u/12567?v=3","gravatar_id":"","url":"https://api.github.com/users/nsf","html_url":"https://github.com/nsf","followers_url":"https://api.github.com/users/nsf/followers","following_url":"https://api.github.com/users/nsf/following{/other_user}","gists_url":"https://api.github.com/users/nsf/gists{/gist_id}","starred_url":"https://api.github.com/users/nsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsf/subscriptions","organizations_url":"https://api.github.com/users/nsf/orgs","repos_url":"https://api.github.com/users/nsf/repos","events_url":"https://api.github.com/users/nsf/events{/privacy}","received_events_url":"https://api.github.com/users/nsf/received_events","type":"User","site_admin":false},"repo":{"id":3165783,"name":"termbox-go","full_name":"nsf/termbox-go","owner":{"login":"nsf","id":12567,"avatar_url":"https://avatars.githubusercontent.com/u/12567?v=3","gravatar_id":"","url":"https://api.github.com/users/nsf","html_url":"https://github.com/nsf","followers_url":"https://api.github.com/users/nsf/followers","following_url":"https://api.github.com/users/nsf/following{/other_user}","gists_url":"https://api.github.com/users/nsf/gists{/gist_id}","starred_url":"https://api.github.com/users/nsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsf/subscriptions","organizations_url":"https://api.github.com/users/nsf/orgs","repos_url":"https://api.github.com/users/nsf/repos","events_url":"https://api.github.com/users/nsf/events{/privacy}","received_events_url":"https://api.github.com/users/nsf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nsf/termbox-go","description":"Pure Go termbox implementation","fork":false,"url":"https://api.github.com/repos/nsf/termbox-go","forks_url":"https://api.github.com/repos/nsf/termbox-go/forks","keys_url":"https://api.github.com/repos/nsf/termbox-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nsf/termbox-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nsf/termbox-go/teams","hooks_url":"https://api.github.com/repos/nsf/termbox-go/hooks","issue_events_url":"https://api.github.com/repos/nsf/termbox-go/issues/events{/number}","events_url":"https://api.github.com/repos/nsf/termbox-go/events","assignees_url":"https://api.github.com/repos/nsf/termbox-go/assignees{/user}","branches_url":"https://api.github.com/repos/nsf/termbox-go/branches{/branch}","tags_url":"https://api.github.com/repos/nsf/termbox-go/tags","blobs_url":"https://api.github.com/repos/nsf/termbox-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nsf/termbox-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nsf/termbox-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/nsf/termbox-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nsf/termbox-go/statuses/{sha}","languages_url":"https://api.github.com/repos/nsf/termbox-go/languages","stargazers_url":"https://api.github.com/repos/nsf/termbox-go/stargazers","contributors_url":"https://api.github.com/repos/nsf/termbox-go/contributors","subscribers_url":"https://api.github.com/repos/nsf/termbox-go/subscribers","subscription_url":"https://api.github.com/repos/nsf/termbox-go/subscription","commits_url":"https://api.github.com/repos/nsf/termbox-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/nsf/termbox-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/nsf/termbox-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/nsf/termbox-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/nsf/termbox-go/contents/{+path}","compare_url":"https://api.github.com/repos/nsf/termbox-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nsf/termbox-go/merges","archive_url":"https://api.github.com/repos/nsf/termbox-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nsf/termbox-go/downloads","issues_url":"https://api.github.com/repos/nsf/termbox-go/issues{/number}","pulls_url":"https://api.github.com/repos/nsf/termbox-go/pulls{/number}","milestones_url":"https://api.github.com/repos/nsf/termbox-go/milestones{/number}","notifications_url":"https://api.github.com/repos/nsf/termbox-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nsf/termbox-go/labels{/name}","releases_url":"https://api.github.com/repos/nsf/termbox-go/releases{/id}","created_at":"2012-01-12T21:03:03Z","updated_at":"2015-11-04T15:38:43Z","pushed_at":"2015-11-04T16:56:10Z","git_url":"git://github.com/nsf/termbox-go.git","ssh_url":"git@github.com:nsf/termbox-go.git","clone_url":"https://github.com/nsf/termbox-go.git","svn_url":"https://github.com/nsf/termbox-go","homepage":"http://code.google.com/p/termbox","size":851,"stargazers_count":1192,"watchers_count":1192,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":16,"forks":120,"open_issues":16,"watchers":1192,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nsf/termbox-go/pulls/105"},"html":{"href":"https://github.com/nsf/termbox-go/pull/105"},"issue":{"href":"https://api.github.com/repos/nsf/termbox-go/issues/105"},"comments":{"href":"https://api.github.com/repos/nsf/termbox-go/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/nsf/termbox-go/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/nsf/termbox-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nsf/termbox-go/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/nsf/termbox-go/statuses/010a5510e416cf7283b3a426d19e315ce84fd23f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":0,"changed_files":1}}