summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/socket.2
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2008-06-29 17:17:14 +0000
committerdas <das@FreeBSD.org>2008-06-29 17:17:14 +0000
commit7b38a318a44fcf3fe1c18946c7c242ee9c3fd7d4 (patch)
tree5423b93086c8d5a9dcb344cc0c74959336fca0c4 /lib/libc/sys/socket.2
parentd97ee39b6076b326ab7fdf5789df34204a18008f (diff)
downloadFreeBSD-src-7b38a318a44fcf3fe1c18946c7c242ee9c3fd7d4.zip
FreeBSD-src-7b38a318a44fcf3fe1c18946c7c242ee9c3fd7d4.tar.gz
Make it clearer that it is possible to disable the generation of
SIGPIPE for individual sockets (PR: kern/118626). While here, s/insure/ensure/.
Diffstat (limited to 'lib/libc/sys/socket.2')
-rw-r--r--lib/libc/sys/socket.28
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2
index 1cf3af8..c0028fa 100644
--- a/lib/libc/sys/socket.2
+++ b/lib/libc/sys/socket.2
@@ -168,7 +168,7 @@ and received as described in
.Pp
The communications protocols used to implement a
.Dv SOCK_STREAM
-insure that data
+ensure that data
is not lost or duplicated.
If a piece of data for which the
peer protocol has buffer space cannot be successfully transmitted
@@ -187,11 +187,11 @@ roughly every minute in the absence of other activity.
An error is then indicated if no response can be
elicited on an otherwise
idle connection for an extended period (e.g.\& 5 minutes).
-A
+By default, a
.Dv SIGPIPE
signal is raised if a process sends
-on a broken stream; this causes naive processes,
-which do not handle the signal, to exit.
+on a broken stream, but this behavior may be inhibited via
+.Xr setsockopt 2 .
.Pp
.Dv SOCK_SEQPACKET
sockets employ the same system calls
OpenPOWER on IntegriCloud