{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/452","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/452/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/452/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/452","id":157411590,"number":452,"title":"eventfd using EFD_SEMAPHORE fails with EINVAL (Invalid argument)","user":{"login":"aidsjorb","id":3299694,"avatar_url":"https://avatars.githubusercontent.com/u/3299694?v=3","gravatar_id":"","url":"https://api.github.com/users/aidsjorb","html_url":"https://github.com/aidsjorb","followers_url":"https://api.github.com/users/aidsjorb/followers","following_url":"https://api.github.com/users/aidsjorb/following{/other_user}","gists_url":"https://api.github.com/users/aidsjorb/gists{/gist_id}","starred_url":"https://api.github.com/users/aidsjorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidsjorb/subscriptions","organizations_url":"https://api.github.com/users/aidsjorb/orgs","repos_url":"https://api.github.com/users/aidsjorb/repos","events_url":"https://api.github.com/users/aidsjorb/events{/privacy}","received_events_url":"https://api.github.com/users/aidsjorb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-29T23:24:35Z","updated_at":"2016-05-31T22:16:06Z","closed_at":null,"body":"eventfd appears to work fine using EFD_CLOEXEC | EFD_NONBLOCK but once EFD_SEMAPHORE is included then EINVAL is returned.\r\n\r\nThe attached zip should contain a cpp file demonstrating the issue. It should also include an strace of the actual execution.\r\n\r\n[eventfd_failures.zip](https://github.com/Microsoft/BashOnWindows/files/288602/eventfd_failures.zip)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/222837953","html_url":"https://github.com/Microsoft/BashOnWindows/issues/452#issuecomment-222837953","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/452","id":222837953,"user":{"login":"aidsjorb","id":3299694,"avatar_url":"https://avatars.githubusercontent.com/u/3299694?v=3","gravatar_id":"","url":"https://api.github.com/users/aidsjorb","html_url":"https://github.com/aidsjorb","followers_url":"https://api.github.com/users/aidsjorb/followers","following_url":"https://api.github.com/users/aidsjorb/following{/other_user}","gists_url":"https://api.github.com/users/aidsjorb/gists{/gist_id}","starred_url":"https://api.github.com/users/aidsjorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidsjorb/subscriptions","organizations_url":"https://api.github.com/users/aidsjorb/orgs","repos_url":"https://api.github.com/users/aidsjorb/repos","events_url":"https://api.github.com/users/aidsjorb/events{/privacy}","received_events_url":"https://api.github.com/users/aidsjorb/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T22:16:05Z","updated_at":"2016-05-31T22:16:05Z","body":"In this scenario it was an application I'm working on myself.  I'm using the eventfd as a convenient \"interrupt\" mechanism for a select call that is waiting for read ready on one or more file descriptors.\r\n\r\nThe facebook folly library appears to do something similar in its libevent wrapper but they must be doing some ifdef magic to avoid any incompatible environments (it seems to work fine.)\r\n\r\nI don't think the EFD_SEMAPHORE option is strictly necessary for my usage so I can get around it for now.  Thanks for the heads up. \r\n\r\nI appreciate all the work you guys are doing on this!"}}
{"actor":{"display_login":"aidsjorb"}}