]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
preforker: prevent call to 'write' on an fd that was already closed, plus minor code... 10949/head
authorAvner BenHanoch <avnerb@mellanox.com>
Thu, 1 Sep 2016 08:49:13 +0000 (11:49 +0300)
committerAvner BenHanoch <avnerb@mellanox.com>
Thu, 1 Sep 2016 08:49:13 +0000 (11:49 +0300)
commitb687f6a30671a3ed31ad682657a834700278cf5e
tree93de62e919dac3ed4aaefdd10e501b2fa02e0e13
parent79c01b812fa72cea48b72a51b095e51c6acb28c0
preforker: prevent call to 'write' on an fd that was already closed, plus minor code fixups

upon ceph_mon parent exiting it calls prefork.exit(err) that was resulting in
writing the exit status to fd[1] whis was previously closed in this process.
for fixing it, I guarded the call to 'signal_exit(r)' with 'if (is_child())'

on the way, I provided 2 minor code fixups in this file

Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
src/common/Preforker.h