]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messanger: shouldn't throw sigpipe on failed socket
authorYehuda Sadeh <yehuda.sadeh@dreamhost.com>
Thu, 3 Mar 2011 21:44:07 +0000 (13:44 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 3 Mar 2011 15:50:31 +0000 (07:50 -0800)
src/msg/SimpleMessenger.cc

index da22c7ccbd07048768ab99d6f153803905ce1da8..6f746d444b841b82c677062c4063afbd90079e21 100644 (file)
@@ -1991,7 +1991,7 @@ int SimpleMessenger::Pipe::do_sendmsg(int sd, struct msghdr *msg, int len, bool
       assert(l == len);
     }
 
-    int r = ::sendmsg(sd, msg, more ? MSG_MORE : 0);
+    int r = ::sendmsg(sd, msg, MSG_NOSIGNAL | (more ? MSG_MORE : 0));
     if (r == 0) 
       dout(10) << "do_sendmsg hmm do_sendmsg got r==0!" << dendl;
     if (r < 0) {