summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2003-08-06 14:21:06 +0000
committeryar <yar@FreeBSD.org>2003-08-06 14:21:06 +0000
commitf02f488d853da002790d6e991704ebcb57de34cc (patch)
tree4e593563d181fc04d31a41ad6375d3aa57344780 /lib/libc
parentcd531ac81186009bb934abb04d47be82465f7205 (diff)
downloadFreeBSD-src-f02f488d853da002790d6e991704ebcb57de34cc.zip
FreeBSD-src-f02f488d853da002790d6e991704ebcb57de34cc.tar.gz
Document that connect(2) can return EINTR, and that it
can return EALREADY for a socket in blocking mode as well.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/connect.29
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2
index 18a656b..7b135ea 100644
--- a/lib/libc/sys/connect.2
+++ b/lib/libc/sys/connect.2
@@ -117,10 +117,13 @@ be completed immediately.
It is possible to
.Xr select 2
for completion by selecting the socket for writing.
+.It Bq Er EINTR
+The connection attempt was interrupted by the delivery of a signal.
+The connection will be established in the background,
+as in the case of
+.Er EINPROGRESS .
.It Bq Er EALREADY
-The socket is non-blocking
-and a previous connection attempt
-has not yet been completed.
+A previous connection attempt has not yet been completed.
.It Bq Er EACCES
An attempt is made to connect to a broadcast address (obtained through the
.Dv INADDR_BROADCAST
OpenPOWER on IntegriCloud