messaging3: Fix sending large messages on FreeBSD
authorVolker Lendecke <vl@samba.org>
Mon, 24 Nov 2014 15:31:07 +0000 (16:31 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 24 Nov 2014 17:52:05 +0000 (18:52 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/unix_msg/unix_msg.c

index 9641bff55664a51174da8825bb4b830c188aecc1..7ca506a85c613a5f80495d0e3363b2e9210886fe 100644 (file)
@@ -743,6 +743,10 @@ static int unix_dgram_send(struct unix_dgram_ctx *ctx,
        }
        if ((errno != EWOULDBLOCK) &&
            (errno != EAGAIN) &&
+#ifdef ENOBUFS
+           /* FreeBSD can give this for large messages */
+           (errno != ENOBUFS) &&
+#endif
            (errno != EINTR)) {
                return errno;
        }