{"action":"created","issue":{"url":"https://api.github.com/repos/hpcloud/tail/issues/68","labels_url":"https://api.github.com/repos/hpcloud/tail/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/hpcloud/tail/issues/68/comments","events_url":"https://api.github.com/repos/hpcloud/tail/issues/68/events","html_url":"https://github.com/hpcloud/tail/pull/68","id":120714018,"number":68,"title":"fix block until exists function","user":{"login":"miraclesu","id":682907,"avatar_url":"https://avatars.githubusercontent.com/u/682907?v=3","gravatar_id":"","url":"https://api.github.com/users/miraclesu","html_url":"https://github.com/miraclesu","followers_url":"https://api.github.com/users/miraclesu/followers","following_url":"https://api.github.com/users/miraclesu/following{/other_user}","gists_url":"https://api.github.com/users/miraclesu/gists{/gist_id}","starred_url":"https://api.github.com/users/miraclesu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miraclesu/subscriptions","organizations_url":"https://api.github.com/users/miraclesu/orgs","repos_url":"https://api.github.com/users/miraclesu/repos","events_url":"https://api.github.com/users/miraclesu/events{/privacy}","received_events_url":"https://api.github.com/users/miraclesu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-07T07:11:47Z","updated_at":"2015-12-07T20:57:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hpcloud/tail/pulls/68","html_url":"https://github.com/hpcloud/tail/pull/68","diff_url":"https://github.com/hpcloud/tail/pull/68.diff","patch_url":"https://github.com/hpcloud/tail/pull/68.patch"},"body":"When we run the flow program, then execute `echo 1 > not_exist` in shell, the result is not we want to.\r\n\r\n```\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\r\n\t\"github.com/hpcloud/tail\"\r\n)\r\n\r\nfunc main() {\r\n\tt, err := tail.TailFile(\"not_exists\", tail.Config{\r\n\t\tFollow:    true,\r\n\t\tMustExist: false,\r\n\t})\r\n\r\n\tif err != nil {\r\n\t\tfmt.Printf(\"err=%+v\\n\", err)\r\n\t\treturn\r\n\t}\r\n\r\n\tfor {\r\n\t\tselect {\r\n\t\tcase line := <-t.Lines:\r\n\t\t\tfmt.Printf(\"line=%s\\n\", line)\r\n\t\t}\r\n\t}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/hpcloud/tail/issues/comments/162659876","html_url":"https://github.com/hpcloud/tail/pull/68#issuecomment-162659876","issue_url":"https://api.github.com/repos/hpcloud/tail/issues/68","id":162659876,"user":{"login":"Nino-K","id":10409174,"avatar_url":"https://avatars.githubusercontent.com/u/10409174?v=3","gravatar_id":"","url":"https://api.github.com/users/Nino-K","html_url":"https://github.com/Nino-K","followers_url":"https://api.github.com/users/Nino-K/followers","following_url":"https://api.github.com/users/Nino-K/following{/other_user}","gists_url":"https://api.github.com/users/Nino-K/gists{/gist_id}","starred_url":"https://api.github.com/users/Nino-K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nino-K/subscriptions","organizations_url":"https://api.github.com/users/Nino-K/orgs","repos_url":"https://api.github.com/users/Nino-K/repos","events_url":"https://api.github.com/users/Nino-K/events{/privacy}","received_events_url":"https://api.github.com/users/Nino-K/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T20:57:03Z","updated_at":"2015-12-07T20:57:03Z","body":"@miraclesu thanks for you contribution. I checkout your branch, I was unable to successfully run the tests(it hangs). I am more than happy to review this PR once the CI is passing."}}