{"action":"created","issue":{"url":"https://api.github.com/repos/luaposix/luaposix/issues/81","labels_url":"https://api.github.com/repos/luaposix/luaposix/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/luaposix/luaposix/issues/81/comments","events_url":"https://api.github.com/repos/luaposix/luaposix/issues/81/events","html_url":"https://github.com/luaposix/luaposix/issues/81","id":13090955,"number":81,"title":"posix.pipeline doesn't restore stdout properly","user":{"login":"rrthomas","id":17382,"avatar_url":"https://avatars.githubusercontent.com/u/17382?v=3","gravatar_id":"","url":"https://api.github.com/users/rrthomas","html_url":"https://github.com/rrthomas","followers_url":"https://api.github.com/users/rrthomas/followers","following_url":"https://api.github.com/users/rrthomas/following{/other_user}","gists_url":"https://api.github.com/users/rrthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/rrthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrthomas/subscriptions","organizations_url":"https://api.github.com/users/rrthomas/orgs","repos_url":"https://api.github.com/users/rrthomas/repos","events_url":"https://api.github.com/users/rrthomas/events{/privacy}","received_events_url":"https://api.github.com/users/rrthomas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/luaposix/luaposix/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/luaposix/luaposix/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/luaposix/luaposix/milestones/2","labels_url":"https://api.github.com/repos/luaposix/luaposix/milestones/2/labels","id":851828,"number":2,"title":"v33.2.0","description":"stuff that needs to be fixed pretty soon, but that shouldn't hold up the current release.","creator":{"login":"gvvaughan","id":50665,"avatar_url":"https://avatars.githubusercontent.com/u/50665?v=3","gravatar_id":"","url":"https://api.github.com/users/gvvaughan","html_url":"https://github.com/gvvaughan","followers_url":"https://api.github.com/users/gvvaughan/followers","following_url":"https://api.github.com/users/gvvaughan/following{/other_user}","gists_url":"https://api.github.com/users/gvvaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/gvvaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvvaughan/subscriptions","organizations_url":"https://api.github.com/users/gvvaughan/orgs","repos_url":"https://api.github.com/users/gvvaughan/repos","events_url":"https://api.github.com/users/gvvaughan/events{/privacy}","received_events_url":"https://api.github.com/users/gvvaughan/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":7,"state":"open","created_at":"2014-11-03T20:25:31Z","updated_at":"2014-12-18T12:58:58Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2013-04-11T21:37:41Z","updated_at":"2015-01-18T21:36:47Z","closed_at":null,"body":"See https://savannah.gnu.org/patch/index.php?8007 for a demonstration of the problem (in an editor, using posix.pipeline messes up the terminal).\r\n\r\nThe advice given here: http://stackoverflow.com/questions/11042218/c-restore-stdout-to-terminal is exactly what posix.pipeline does (independently!), so I'm not sure what the problem is."},"comment":{"url":"https://api.github.com/repos/luaposix/luaposix/issues/comments/70427280","html_url":"https://github.com/luaposix/luaposix/issues/81#issuecomment-70427280","issue_url":"https://api.github.com/repos/luaposix/luaposix/issues/81","id":70427280,"user":{"login":"rrthomas","id":17382,"avatar_url":"https://avatars.githubusercontent.com/u/17382?v=3","gravatar_id":"","url":"https://api.github.com/users/rrthomas","html_url":"https://github.com/rrthomas","followers_url":"https://api.github.com/users/rrthomas/followers","following_url":"https://api.github.com/users/rrthomas/following{/other_user}","gists_url":"https://api.github.com/users/rrthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/rrthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrthomas/subscriptions","organizations_url":"https://api.github.com/users/rrthomas/orgs","repos_url":"https://api.github.com/users/rrthomas/repos","events_url":"https://api.github.com/users/rrthomas/events{/privacy}","received_events_url":"https://api.github.com/users/rrthomas/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T21:36:47Z","updated_at":"2015-01-18T21:36:47Z","body":"I just spotted a possible clue as to why stdout-restoring isn't working. One of the comments in the stackoverflow page linked above says: \"You do need to worry about flushing standard I/O streams (fflush(stdout)) at appropriate times as you mess around with this. That means 'before you switch stdout over'.\""}}