{"action":"reopened","number":42,"pull_request":{"url":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls/42","id":88200725,"html_url":"https://github.com/kdlucas/byte-unixbench/pull/42","diff_url":"https://github.com/kdlucas/byte-unixbench/pull/42.diff","patch_url":"https://github.com/kdlucas/byte-unixbench/pull/42.patch","issue_url":"https://api.github.com/repos/kdlucas/byte-unixbench/issues/42","number":42,"state":"open","locked":false,"title":"Fix Result Report Race Condition in Pipe-based Context Switching Test","user":{"login":"traveller42","id":4277324,"avatar_url":"https://avatars.githubusercontent.com/u/4277324?v=3","gravatar_id":"","url":"https://api.github.com/users/traveller42","html_url":"https://github.com/traveller42","followers_url":"https://api.github.com/users/traveller42/followers","following_url":"https://api.github.com/users/traveller42/following{/other_user}","gists_url":"https://api.github.com/users/traveller42/gists{/gist_id}","starred_url":"https://api.github.com/users/traveller42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traveller42/subscriptions","organizations_url":"https://api.github.com/users/traveller42/orgs","repos_url":"https://api.github.com/users/traveller42/repos","events_url":"https://api.github.com/users/traveller42/events{/privacy}","received_events_url":"https://api.github.com/users/traveller42/received_events","type":"User","site_admin":false},"body":"Ensure all `report()` calls yield correct information.\r\n\r\nThe `report()` call prints the value of `iter`.  This is still **zero(0)** when the process forks.\r\n\r\nI tested both removing the call in the child fork and never had a test where the result didn't get written.  I also tested with setting `iter` in the child to `iter1`, the iteration variable for the child process, just before the call to `report()`.  This resulted in two lines written every time in my testing.\r\n\r\nI'm submitting the code that will report from both forks just in case there is a condition where the parent will get killed before reporting the result.  I don't think this will happen, but the test runner handles the case of receiving two lines correctly and without complaint.","created_at":"2016-10-06T05:27:29Z","updated_at":"2016-10-07T04:56:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db43f9e7b7ada5f2eb0f042a7800bb810de0c23e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls/42/commits","review_comments_url":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls/42/comments","review_comment_url":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kdlucas/byte-unixbench/issues/42/comments","statuses_url":"https://api.github.com/repos/kdlucas/byte-unixbench/statuses/7dabc8fe878c0c92cdcd46b308c84eac10117eef","head":{"label":"traveller42:master","ref":"master","sha":"7dabc8fe878c0c92cdcd46b308c84eac10117eef","user":{"login":"traveller42","id":4277324,"avatar_url":"https://avatars.githubusercontent.com/u/4277324?v=3","gravatar_id":"","url":"https://api.github.com/users/traveller42","html_url":"https://github.com/traveller42","followers_url":"https://api.github.com/users/traveller42/followers","following_url":"https://api.github.com/users/traveller42/following{/other_user}","gists_url":"https://api.github.com/users/traveller42/gists{/gist_id}","starred_url":"https://api.github.com/users/traveller42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traveller42/subscriptions","organizations_url":"https://api.github.com/users/traveller42/orgs","repos_url":"https://api.github.com/users/traveller42/repos","events_url":"https://api.github.com/users/traveller42/events{/privacy}","received_events_url":"https://api.github.com/users/traveller42/received_events","type":"User","site_admin":false},"repo":{"id":70018593,"name":"byte-unixbench","full_name":"traveller42/byte-unixbench","owner":{"login":"traveller42","id":4277324,"avatar_url":"https://avatars.githubusercontent.com/u/4277324?v=3","gravatar_id":"","url":"https://api.github.com/users/traveller42","html_url":"https://github.com/traveller42","followers_url":"https://api.github.com/users/traveller42/followers","following_url":"https://api.github.com/users/traveller42/following{/other_user}","gists_url":"https://api.github.com/users/traveller42/gists{/gist_id}","starred_url":"https://api.github.com/users/traveller42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traveller42/subscriptions","organizations_url":"https://api.github.com/users/traveller42/orgs","repos_url":"https://api.github.com/users/traveller42/repos","events_url":"https://api.github.com/users/traveller42/events{/privacy}","received_events_url":"https://api.github.com/users/traveller42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/traveller42/byte-unixbench","description":"Automatically exported from code.google.com/p/byte-unixbench","fork":true,"url":"https://api.github.com/repos/traveller42/byte-unixbench","forks_url":"https://api.github.com/repos/traveller42/byte-unixbench/forks","keys_url":"https://api.github.com/repos/traveller42/byte-unixbench/keys{/key_id}","collaborators_url":"https://api.github.com/repos/traveller42/byte-unixbench/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/traveller42/byte-unixbench/teams","hooks_url":"https://api.github.com/repos/traveller42/byte-unixbench/hooks","issue_events_url":"https://api.github.com/repos/traveller42/byte-unixbench/issues/events{/number}","events_url":"https://api.github.com/repos/traveller42/byte-unixbench/events","assignees_url":"https://api.github.com/repos/traveller42/byte-unixbench/assignees{/user}","branches_url":"https://api.github.com/repos/traveller42/byte-unixbench/branches{/branch}","tags_url":"https://api.github.com/repos/traveller42/byte-unixbench/tags","blobs_url":"https://api.github.com/repos/traveller42/byte-unixbench/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/traveller42/byte-unixbench/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/traveller42/byte-unixbench/git/refs{/sha}","trees_url":"https://api.github.com/repos/traveller42/byte-unixbench/git/trees{/sha}","statuses_url":"https://api.github.com/repos/traveller42/byte-unixbench/statuses/{sha}","languages_url":"https://api.github.com/repos/traveller42/byte-unixbench/languages","stargazers_url":"https://api.github.com/repos/traveller42/byte-unixbench/stargazers","contributors_url":"https://api.github.com/repos/traveller42/byte-unixbench/contributors","subscribers_url":"https://api.github.com/repos/traveller42/byte-unixbench/subscribers","subscription_url":"https://api.github.com/repos/traveller42/byte-unixbench/subscription","commits_url":"https://api.github.com/repos/traveller42/byte-unixbench/commits{/sha}","git_commits_url":"https://api.github.com/repos/traveller42/byte-unixbench/git/commits{/sha}","comments_url":"https://api.github.com/repos/traveller42/byte-unixbench/comments{/number}","issue_comment_url":"https://api.github.com/repos/traveller42/byte-unixbench/issues/comments{/number}","contents_url":"https://api.github.com/repos/traveller42/byte-unixbench/contents/{+path}","compare_url":"https://api.github.com/repos/traveller42/byte-unixbench/compare/{base}...{head}","merges_url":"https://api.github.com/repos/traveller42/byte-unixbench/merges","archive_url":"https://api.github.com/repos/traveller42/byte-unixbench/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/traveller42/byte-unixbench/downloads","issues_url":"https://api.github.com/repos/traveller42/byte-unixbench/issues{/number}","pulls_url":"https://api.github.com/repos/traveller42/byte-unixbench/pulls{/number}","milestones_url":"https://api.github.com/repos/traveller42/byte-unixbench/milestones{/number}","notifications_url":"https://api.github.com/repos/traveller42/byte-unixbench/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/traveller42/byte-unixbench/labels{/name}","releases_url":"https://api.github.com/repos/traveller42/byte-unixbench/releases{/id}","deployments_url":"https://api.github.com/repos/traveller42/byte-unixbench/deployments","created_at":"2016-10-05T00:42:03Z","updated_at":"2016-10-05T00:42:05Z","pushed_at":"2016-10-07T01:19:53Z","git_url":"git://github.com/traveller42/byte-unixbench.git","ssh_url":"git@github.com:traveller42/byte-unixbench.git","clone_url":"https://github.com/traveller42/byte-unixbench.git","svn_url":"https://github.com/traveller42/byte-unixbench","homepage":null,"size":187,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"kdlucas:master","ref":"master","sha":"34ecf4ec6a63c3c976a57008ffa1959306039828","user":{"login":"kdlucas","id":3751805,"avatar_url":"https://avatars.githubusercontent.com/u/3751805?v=3","gravatar_id":"","url":"https://api.github.com/users/kdlucas","html_url":"https://github.com/kdlucas","followers_url":"https://api.github.com/users/kdlucas/followers","following_url":"https://api.github.com/users/kdlucas/following{/other_user}","gists_url":"https://api.github.com/users/kdlucas/gists{/gist_id}","starred_url":"https://api.github.com/users/kdlucas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdlucas/subscriptions","organizations_url":"https://api.github.com/users/kdlucas/orgs","repos_url":"https://api.github.com/users/kdlucas/repos","events_url":"https://api.github.com/users/kdlucas/events{/privacy}","received_events_url":"https://api.github.com/users/kdlucas/received_events","type":"User","site_admin":false},"repo":{"id":35233711,"name":"byte-unixbench","full_name":"kdlucas/byte-unixbench","owner":{"login":"kdlucas","id":3751805,"avatar_url":"https://avatars.githubusercontent.com/u/3751805?v=3","gravatar_id":"","url":"https://api.github.com/users/kdlucas","html_url":"https://github.com/kdlucas","followers_url":"https://api.github.com/users/kdlucas/followers","following_url":"https://api.github.com/users/kdlucas/following{/other_user}","gists_url":"https://api.github.com/users/kdlucas/gists{/gist_id}","starred_url":"https://api.github.com/users/kdlucas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdlucas/subscriptions","organizations_url":"https://api.github.com/users/kdlucas/orgs","repos_url":"https://api.github.com/users/kdlucas/repos","events_url":"https://api.github.com/users/kdlucas/events{/privacy}","received_events_url":"https://api.github.com/users/kdlucas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kdlucas/byte-unixbench","description":"Automatically exported from code.google.com/p/byte-unixbench","fork":false,"url":"https://api.github.com/repos/kdlucas/byte-unixbench","forks_url":"https://api.github.com/repos/kdlucas/byte-unixbench/forks","keys_url":"https://api.github.com/repos/kdlucas/byte-unixbench/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kdlucas/byte-unixbench/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kdlucas/byte-unixbench/teams","hooks_url":"https://api.github.com/repos/kdlucas/byte-unixbench/hooks","issue_events_url":"https://api.github.com/repos/kdlucas/byte-unixbench/issues/events{/number}","events_url":"https://api.github.com/repos/kdlucas/byte-unixbench/events","assignees_url":"https://api.github.com/repos/kdlucas/byte-unixbench/assignees{/user}","branches_url":"https://api.github.com/repos/kdlucas/byte-unixbench/branches{/branch}","tags_url":"https://api.github.com/repos/kdlucas/byte-unixbench/tags","blobs_url":"https://api.github.com/repos/kdlucas/byte-unixbench/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kdlucas/byte-unixbench/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kdlucas/byte-unixbench/git/refs{/sha}","trees_url":"https://api.github.com/repos/kdlucas/byte-unixbench/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kdlucas/byte-unixbench/statuses/{sha}","languages_url":"https://api.github.com/repos/kdlucas/byte-unixbench/languages","stargazers_url":"https://api.github.com/repos/kdlucas/byte-unixbench/stargazers","contributors_url":"https://api.github.com/repos/kdlucas/byte-unixbench/contributors","subscribers_url":"https://api.github.com/repos/kdlucas/byte-unixbench/subscribers","subscription_url":"https://api.github.com/repos/kdlucas/byte-unixbench/subscription","commits_url":"https://api.github.com/repos/kdlucas/byte-unixbench/commits{/sha}","git_commits_url":"https://api.github.com/repos/kdlucas/byte-unixbench/git/commits{/sha}","comments_url":"https://api.github.com/repos/kdlucas/byte-unixbench/comments{/number}","issue_comment_url":"https://api.github.com/repos/kdlucas/byte-unixbench/issues/comments{/number}","contents_url":"https://api.github.com/repos/kdlucas/byte-unixbench/contents/{+path}","compare_url":"https://api.github.com/repos/kdlucas/byte-unixbench/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kdlucas/byte-unixbench/merges","archive_url":"https://api.github.com/repos/kdlucas/byte-unixbench/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kdlucas/byte-unixbench/downloads","issues_url":"https://api.github.com/repos/kdlucas/byte-unixbench/issues{/number}","pulls_url":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls{/number}","milestones_url":"https://api.github.com/repos/kdlucas/byte-unixbench/milestones{/number}","notifications_url":"https://api.github.com/repos/kdlucas/byte-unixbench/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kdlucas/byte-unixbench/labels{/name}","releases_url":"https://api.github.com/repos/kdlucas/byte-unixbench/releases{/id}","deployments_url":"https://api.github.com/repos/kdlucas/byte-unixbench/deployments","created_at":"2015-05-07T17:27:54Z","updated_at":"2016-09-29T04:39:38Z","pushed_at":"2016-10-07T01:19:54Z","git_url":"git://github.com/kdlucas/byte-unixbench.git","ssh_url":"git@github.com:kdlucas/byte-unixbench.git","clone_url":"https://github.com/kdlucas/byte-unixbench.git","svn_url":"https://github.com/kdlucas/byte-unixbench","homepage":null,"size":232,"stargazers_count":190,"watchers_count":190,"language":"C","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":5,"forks":54,"open_issues":5,"watchers":190,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls/42"},"html":{"href":"https://github.com/kdlucas/byte-unixbench/pull/42"},"issue":{"href":"https://api.github.com/repos/kdlucas/byte-unixbench/issues/42"},"comments":{"href":"https://api.github.com/repos/kdlucas/byte-unixbench/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kdlucas/byte-unixbench/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/kdlucas/byte-unixbench/statuses/7dabc8fe878c0c92cdcd46b308c84eac10117eef"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":4,"review_comments":0,"commits":2,"additions":3,"deletions":6,"changed_files":1}}
{"actor":{"display_login":"gstrauss"}}