Implement MSG_NOSIGNAL

* Part of latest POSIX specification, this prevents send() on a closed
socket to raise a SIGPIPE signal (but EPIPE is returned).
This commit is contained in:
Adrien Destugues
2015-06-10 17:39:53 +02:00
parent de4adb68a7
commit 4b2d018be4
2 changed files with 6 additions and 4 deletions
+1
View File
@@ -121,6 +121,7 @@ struct msghdr {
#define MSG_BCAST 0x0100 /* this message rec'd as broadcast */
#define MSG_MCAST 0x0200 /* this message rec'd as multicast */
#define MSG_EOF 0x0400 /* data completes connection */
#define MSG_NOSIGNAL 0x0800 /* don't raise SIGPIPE if socket is closed */
struct cmsghdr {
socklen_t cmsg_len;