4.6.4 on Solaris and MSG_NOSIGNAL

Albert Chin samba-technical at mlists.thewrittenword.com
Tue May 30 03:12:11 UTC 2017

Samba-4.6.4 fails to build on Solaris because MSG_NOSIGNAL is not
available. This is used in source3/lib/messages_dgm.c. According to
send(3) on Solaris, only MSG_OOB and MSG_DONTROUTE are flags to
                uint8_t buf[fdlen];

                msghdr_prep_fds(&msg, buf, fdlen, fds, num_fds);

                do {
                        ret = sendmsg(sock, &msg, MSG_NOSIGNAL);
                } while ((ret == -1) && (errno == EINTR));

How should this be fixed? Should we just replace MSG_NOSIGNAL with 0?

albert chin (china at thewrittenword.com)

More information about the samba-technical mailing list