{"action":"opened","issue":{"url":"https://api.github.com/repos/open-eid/chrome-token-signing/issues/5","repository_url":"https://api.github.com/repos/open-eid/chrome-token-signing","labels_url":"https://api.github.com/repos/open-eid/chrome-token-signing/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/open-eid/chrome-token-signing/issues/5/comments","events_url":"https://api.github.com/repos/open-eid/chrome-token-signing/issues/5/events","html_url":"https://github.com/open-eid/chrome-token-signing/issues/5","id":170143641,"number":5,"title":"chrome-token-signin process should check whether stdin is not /dev/null","user":{"login":"plaes","id":91895,"avatar_url":"https://avatars.githubusercontent.com/u/91895?v=3","gravatar_id":"","url":"https://api.github.com/users/plaes","html_url":"https://github.com/plaes","followers_url":"https://api.github.com/users/plaes/followers","following_url":"https://api.github.com/users/plaes/following{/other_user}","gists_url":"https://api.github.com/users/plaes/gists{/gist_id}","starred_url":"https://api.github.com/users/plaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plaes/subscriptions","organizations_url":"https://api.github.com/users/plaes/orgs","repos_url":"https://api.github.com/users/plaes/repos","events_url":"https://api.github.com/users/plaes/events{/privacy}","received_events_url":"https://api.github.com/users/plaes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T11:30:34Z","updated_at":"2016-08-09T11:30:34Z","closed_at":null,"body":"When accidentally starting chrome-token-signin process via window manager run dialog, process's stdin points to `/dev/null` and this causes process to run at 100% CPU.\r\n\r\nEasiest way to test: `chrome-token-signing </dev/null`\r\n\r\nProbably easiest way to fix it:\r\n```\r\nif (!isatty(fileno(stdin)) {\r\n    // expecting stdin to be pipe\r\n    exit(-1)\r\n}\r\n```"}}
{"actor":{"display_login":"plaes"}}