]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: add a mechanism for Solaris to avoid dying on SIGPIPE
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 10:30:03 +0000 (12:30 +0200)
commitecd89a1fad763d76ddcd4000821f3372a23c70d6
tree0e42db047e7368c869564702462ad844269e54b3
parente709c03ff98dc59e6374a19a5e780c24e4e7ff80
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