From: Ben Gras Date: Mon, 21 Jul 2014 16:34:01 +0000 (+0200) Subject: : turn off MSG_NOSIGNAL X-Git-Tag: v3.3.0~132 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/static/doc/zpipe.c?a=commitdiff_plain;h=fc05cedbdda8ff69cd4fe01f136ade131fbf6cc4;p=minix.git : turn off MSG_NOSIGNAL . this unimplemented flag causes runtime problems (ENOSYS on send()) for e.g. libfetch when used . restores functionality of pkg_add (remote), fetch --- diff --git a/sys/sys/socket.h b/sys/sys/socket.h index e910d1656..cba624e73 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -497,7 +497,9 @@ struct msghdr { #define MSG_DONTWAIT 0x0080 /* this message should be nonblocking */ #define MSG_BCAST 0x0100 /* this message was rcvd using link-level brdcst */ #define MSG_MCAST 0x0200 /* this message was rcvd using link-level mcast */ +#ifndef __minix #define MSG_NOSIGNAL 0x0400 /* do not generate SIGPIPE on EOF */ +#endif #if defined(_NETBSD_SOURCE) #define MSG_CMSG_CLOEXEC 0x0800 /* close on exec receiving fd */ #define MSG_NBIO 0x1000 /* use non-blocking I/O */