alanxz/rabbitmq-c — pull request #24 by alanxz (2012-06-06 20:24:43+00:00)
Title: Disable SIGPIPE on sockets (Issue #23)

Disable ```SIGPIPE``` signaling on sockets owned by the library by setting ```MSG_NOSIGNAL``` on linux and ```SO_NOSIGPIPE``` on BSD variants, Win32 doesn't have ```SIGPIPE``` its ignored.

Not using the ```signal(SIGPIPE, SIG_IGN)``` as that affects the entire process and a process may have other pipes it wants to be signaled on.