973938: correctly handle SIGPIPE in rct
Merge pull request #869 from candlepin/ckozak/rct_broken_pipe

973938: correctly handle SIGPIPE in rct