{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/6549","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/6549/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/6549/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/6549/events","html_url":"https://github.com/flutter/flutter/issues/6549","id":185545518,"number":6549,"title":"flock 3: Bad file descriptor","user":{"login":"droundy","id":137513,"avatar_url":"https://avatars.githubusercontent.com/u/137513?v=3","gravatar_id":"","url":"https://api.github.com/users/droundy","html_url":"https://github.com/droundy","followers_url":"https://api.github.com/users/droundy/followers","following_url":"https://api.github.com/users/droundy/following{/other_user}","gists_url":"https://api.github.com/users/droundy/gists{/gist_id}","starred_url":"https://api.github.com/users/droundy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droundy/subscriptions","organizations_url":"https://api.github.com/users/droundy/orgs","repos_url":"https://api.github.com/users/droundy/repos","events_url":"https://api.github.com/users/droundy/events{/privacy}","received_events_url":"https://api.github.com/users/droundy/received_events","type":"User","site_admin":false},"labels":[{"id":283480100,"url":"https://api.github.com/repos/flutter/flutter/labels/affects:%20tools","name":"affects: tools","color":"777777","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-27T00:34:04Z","updated_at":"2016-10-28T19:51:13Z","closed_at":null,"body":"## Steps to Reproduce\r\n\r\nI expect you may have difficulty reproducing this, but I run into the following error when running flutter:\r\n\r\n    $ flutter\r\n    flock: 3: Bad file descriptor\r\n\r\nThe error happens at line 35 of the flutter shell script, which tries to take a lock using the flock utility.  This is on a debian stable computer, and I have no experience using flock with bash, and haven't been able to debug it.  I can make flutter work fine by changing the preceding line such that the if statement fails and a lock is not taken.\r\n\r\nI presume file descriptor 3 is supposed to be created by line 50, which reads:\r\n\r\n    ) 3< $PROG_NAME\r\n\r\nbut don't care to learn enough bash to figure out why it is not working, particularly as I have a workaround.  But it does seem worth fixing, to make flutter work for folks who aren't comfortable editing a bash script.\r\n\r\n## Logs\r\n\r\nCan't do this since flutter fails.  Unless I disable the lock, in which case it works fine.\r\n\r\n## Flutter Doctor\r\n\r\nAgain, not relevant."},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/257012442","html_url":"https://github.com/flutter/flutter/issues/6549#issuecomment-257012442","issue_url":"https://api.github.com/repos/flutter/flutter/issues/6549","id":257012442,"user":{"login":"Hixie","id":551196,"avatar_url":"https://avatars.githubusercontent.com/u/551196?v=3","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T19:51:13Z","updated_at":"2016-10-28T19:51:13Z","body":"I agree that NFS and locking don't do well, but I wouldn't have expected \"Bad file descriptor\"..."}}
{"actor":{"display_login":"Hixie"}}