Penguin
Note: You are viewing an old revision of this page. View the current version.

MSG_NOSIGNAL is a flag used by send() in some implementations of the Berkeley sockets API.

This flag requests that the implementation does not to send a SIGPIPE signal on errors on stream oriented sockets when the other end breaks the connection. The EPIPE error is still returned as normal.

Though it is in some Berkely sockets APIs (notably Linux) it does not exist in what some refer to as the reference implementation, FreeBSD lacks this option, instead using a socket option SO_NOSIGPIPE?.