]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: add a mechanism for Solaris to avoid dying on SIGPIPE 18126/head
authorGreg Farnum <gfarnum@redhat.com>
Tue, 3 Oct 2017 22:54:06 +0000 (15:54 -0700)
committerNathan Cutler <ncutler@suse.com>
Thu, 5 Oct 2017 13:05:34 +0000 (15:05 +0200)
commit16c6dd5129f54a6f5eec7fe16719a179c176548e
treed4a308876a659b7125f24241e04e8d7161f832af
parent0251cfcd17111334d3f13dc1e9d52a9aa9302354
msgr: add a mechanism for Solaris to avoid dying on SIGPIPE

This is fairly clean: we define an RAII object in the Messenger.h on
Solaris, and "declare" it with a macro in the implementations. There's
no code duplication and on Linux it's just entirely compiled out.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit cba20a95e816aaf9f0971b29b14b0be8c524b59d)

Conflicts:
    src/msg/async/PosixStack.cc - luminous #include "common/simple_spin.h" is
        missing in master (trivial resolution)
src/include/sock_compat.h
src/msg/Messenger.h
src/msg/async/PosixStack.cc
src/msg/simple/Pipe.cc