]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r236193: libfetch: Avoid SIGPIPE on network connections.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jun 2012 11:31:45 +0000 (11:31 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jun 2012 11:31:45 +0000 (11:31 +0000)
commit9baea1b588c1d4897bf81e85b1f5aec3f1f86227
tree7fcc98668d8f6ba12295af6ba05768db39bbcd0d
parentf5bd0feedb81a452c736b65dd08a66fe238d68fb
MFC r236193: libfetch: Avoid SIGPIPE on network connections.

To avoid unexpected process termination from SIGPIPE when writing to a
closed network connection, enable SO_NOSIGPIPE on all network connections.

The POSIX standard MSG_NOSIGNAL is not used since it requires modifying all
send calls to add this flag. This is particularly nasty for SSL connections.

git-svn-id: svn://svn.freebsd.org/base/stable/8@236510 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libfetch/common.c