{"action":"created","issue":{"url":"https://api.github.com/repos/ocsigen/lwt/issues/170","labels_url":"https://api.github.com/repos/ocsigen/lwt/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/ocsigen/lwt/issues/170/comments","events_url":"https://api.github.com/repos/ocsigen/lwt/issues/170/events","html_url":"https://github.com/ocsigen/lwt/issues/170","id":93285024,"number":170,"title":"Ocaml 4.02.2 and Lwt_unix.O_CLOEXEC","user":{"login":"domsj","id":89326,"avatar_url":"https://avatars.githubusercontent.com/u/89326?v=3","gravatar_id":"","url":"https://api.github.com/users/domsj","html_url":"https://github.com/domsj","followers_url":"https://api.github.com/users/domsj/followers","following_url":"https://api.github.com/users/domsj/following{/other_user}","gists_url":"https://api.github.com/users/domsj/gists{/gist_id}","starred_url":"https://api.github.com/users/domsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domsj/subscriptions","organizations_url":"https://api.github.com/users/domsj/orgs","repos_url":"https://api.github.com/users/domsj/repos","events_url":"https://api.github.com/users/domsj/events{/privacy}","received_events_url":"https://api.github.com/users/domsj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-06T13:58:34Z","updated_at":"2015-12-10T01:55:04Z","closed_at":null,"body":"The following fails in utop as of ocaml 4.02.2 (works just fine with 4.02.1)\r\n```\r\nLwt_unix.openfile\r\n  \"/tmp/test\"\r\n  [Lwt_unix.O_RDWR; Lwt_unix.O_CLOEXEC; Lwt_unix.O_CREAT; Lwt_unix.O_EXCL] 0o600\r\n >>= fun fd ->\r\nLwt_unix.write fd \"a\" 0 1;;\r\nException: Unix.Unix_error (Unix.EBADF, \"write\", \"\"). \r\n```\r\n\r\nIt not longer fails when I remove the O_CLOEXEC flag.\r\n\r\nDoing the same things with (blocking) functions from the standard Unix module does not have this problem..."},"comment":{"url":"https://api.github.com/repos/ocsigen/lwt/issues/comments/163461689","html_url":"https://github.com/ocsigen/lwt/issues/170#issuecomment-163461689","issue_url":"https://api.github.com/repos/ocsigen/lwt/issues/170","id":163461689,"user":{"login":"rgrinberg","id":139003,"avatar_url":"https://avatars.githubusercontent.com/u/139003?v=3","gravatar_id":"","url":"https://api.github.com/users/rgrinberg","html_url":"https://github.com/rgrinberg","followers_url":"https://api.github.com/users/rgrinberg/followers","following_url":"https://api.github.com/users/rgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/rgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgrinberg/subscriptions","organizations_url":"https://api.github.com/users/rgrinberg/orgs","repos_url":"https://api.github.com/users/rgrinberg/repos","events_url":"https://api.github.com/users/rgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/rgrinberg/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T01:55:04Z","updated_at":"2015-12-10T01:55:04Z","body":":100: @vbmithr thanks for the release"}}