]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 4 Oct 2017 14:10:23 +0000 (07:10 -0700)
commitcba20a95e816aaf9f0971b29b14b0be8c524b59d
treeba346ed25970479d694415a986b06d48939a4851
parent21bdb730932196a48407be0effab8813a78c4b1b
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>
src/include/sock_compat.h
src/msg/Messenger.h
src/msg/async/PosixStack.cc
src/msg/simple/Pipe.cc