]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/SubProcess: silence compiler warnings 5693/head
authorKefu Chai <kchai@redhat.com>
Fri, 28 Aug 2015 13:01:53 +0000 (06:01 -0700)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Aug 2015 13:09:21 +0000 (06:09 -0700)
commitafa92e5743832f8fd3956bd1eac695daa07ad5ff
tree71037661e54c9395bdea2ad6889239f6dc67bb15
parent0a7c4e390b91ea0eee7a0a104ee5ab93a2ccc5ed
common/SubProcess: silence compiler warnings

* the STD{IN,OUT,ERR}_FILENO are closed when being dup2'ed so we
  can not write to cout or cerr in child processes, as these
  fstream are still holding the old references.
* to silence every write(2) call is tedious. better off overwriting
  the raw buffer in cerr and cout ostreams

Fixes: #12730
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/SubProcess.h