4.6.4 on Solaris and MSG_NOSIGNAL
Albert Chin
samba-technical at mlists.thewrittenword.com
Tue May 30 12:05:02 UTC 2017
On Mon, May 29, 2017 at 10:12:11PM -0500, Albert Chin via samba-technical wrote:
> 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
> sendmsg().
> ...
> {
> 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?
AIX 5.3 doesn't have MSG_NOSIGNAL either.
--
albert chin (china at thewrittenword.com)
More information about the samba-technical
mailing list