{"comment":{"url":"https://api.github.com/repos/trociny/ceph/comments/9916566","html_url":"https://github.com/trociny/ceph/commit/4059955509faf594a49185c190f8cf50b5116fcf#commitcomment-9916566","id":9916566,"user":{"login":"dachary","id":433594,"avatar_url":"https://avatars.githubusercontent.com/u/433594?v=3","gravatar_id":"","url":"https://api.github.com/users/dachary","html_url":"https://github.com/dachary","followers_url":"https://api.github.com/users/dachary/followers","following_url":"https://api.github.com/users/dachary/following{/other_user}","gists_url":"https://api.github.com/users/dachary/gists{/gist_id}","starred_url":"https://api.github.com/users/dachary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dachary/subscriptions","organizations_url":"https://api.github.com/users/dachary/orgs","repos_url":"https://api.github.com/users/dachary/repos","events_url":"https://api.github.com/users/dachary/events{/privacy}","received_events_url":"https://api.github.com/users/dachary/received_events","type":"User","site_admin":false},"position":227,"line":227,"path":"src/common/SubProcess.h","commit_id":"4059955509faf594a49185c190f8cf50b5116fcf","created_at":"2015-02-25T15:23:40Z","updated_at":"2015-02-25T15:23:40Z","body":"shouldn't it be **fd_out = opipe[IN]; close(opipe[OUT ])** here ? i.e. the parent can read whatever the child writes to stdout."}}