4889: close the child stderr pipe before returning
authorTim Pierce <twp@curoverse.com>
Wed, 21 Jan 2015 20:18:16 +0000 (15:18 -0500)
committerTim Pierce <twp@curoverse.com>
Wed, 21 Jan 2015 20:18:16 +0000 (15:18 -0500)
commit27205826b53fee3d76f1e0128c4ad4c26bb0a3ca
tree9b5b7f4efaaf6e61c16dd8950535aefaeea38fe5
parentffcfb73e6a5dfd626b1d523accc42e7a6af5e8ed
4889: close the child stderr pipe before returning

Updated CopyPipeToChan to close the child's stderr pipe before
returning, so that even if it returns for some reason other than
EOF (e.g. line too long) the child will not deadlock on writing stderr
output.
services/crunchstat/crunchstat.go