Index: source3/lib/messages_dgm.c =================================================================== --- source3/lib/messages_dgm.c.orig 2017-05-31 17:57:04.979073864 +0000 +++ source3/lib/messages_dgm.c 2017-05-31 17:57:12.692353647 +0000 @@ -356,11 +356,16 @@ { uint8_t buf[fdlen]; + int flags = 0; + +#ifdef MSG_NOSIGNAL + flags = MSG_NOSIGNAL; +#endif msghdr_prep_fds(&msg, buf, fdlen, fds, num_fds); do { - ret = sendmsg(sock, &msg, MSG_NOSIGNAL); + ret = sendmsg(sock, &msg, flags); } while ((ret == -1) && (errno == EINTR)); }