{"action":"closed","issue":{"url":"https://api.github.com/repos/arcxon/todx/issues/3","repository_url":"https://api.github.com/repos/arcxon/todx","labels_url":"https://api.github.com/repos/arcxon/todx/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/arcxon/todx/issues/3/comments","events_url":"https://api.github.com/repos/arcxon/todx/issues/3/events","html_url":"https://github.com/arcxon/todx/issues/3","id":164733902,"number":3,"title":"No error check when reading from stdin","user":{"login":"bendem","id":2681677,"avatar_url":"https://avatars.githubusercontent.com/u/2681677?v=3","gravatar_id":"","url":"https://api.github.com/users/bendem","html_url":"https://github.com/bendem","followers_url":"https://api.github.com/users/bendem/followers","following_url":"https://api.github.com/users/bendem/following{/other_user}","gists_url":"https://api.github.com/users/bendem/gists{/gist_id}","starred_url":"https://api.github.com/users/bendem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendem/subscriptions","organizations_url":"https://api.github.com/users/bendem/orgs","repos_url":"https://api.github.com/users/bendem/repos","events_url":"https://api.github.com/users/bendem/events{/privacy}","received_events_url":"https://api.github.com/users/bendem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-10T20:57:54Z","updated_at":"2016-07-11T18:15:05Z","closed_at":"2016-07-11T18:15:05Z","body":"Closing stdin (i.e. using <kbd>ctrl+d</kbd>) is a generally accepted way to close a command line tool relying on interactive input. This is done by checking the [state](http://en.cppreference.com/w/cpp/io/basic_ios/operator_bool) of the stream before/after actually reading from it.\r\n\r\nThe program currently continously fails to read from stdin once its input gets closed:\r\n![](https://i.imgur.com/IzoGIEa.png)\r\n\r\nAn example patch is available [here](https://gist.github.com/bendem/34ee061762ead229903896dd81fa738b)."}}
{"actor":{"display_login":"bendem"}}