On Mon, 08 Aug 2016 13:11:48 -0700, Philip Guenther wrote:

> Untested, but the obvious port from the other BSDs to have connect() leave 
> the connect running asynchronously.

We should also update the manual accordingly.  Alternately, we could move
the useful bits out of EINPROGRESS and into the main body of the manual
and simply refer to them in ERRORS.

 - todd

Index: lib/libc/sys/connect.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/connect.2,v
retrieving revision 1.27
diff -u -p -u -r1.27 connect.2
--- lib/libc/sys/connect.2      11 Oct 2015 07:25:11 -0000      1.27
+++ lib/libc/sys/connect.2      8 Aug 2016 20:33:26 -0000
@@ -106,8 +106,8 @@ The attempt to connect was forcefully re
 .It Bq Er EHOSTUNREACH
 The destination address specified an unreachable host.
 .It Bq Er EINTR
-A connect was interrupted before it succeeded
-by the delivery of a signal.
+Connection establishment was interrupted by the delivery of a signal.
+The attempt will continue asyncronously as if the socket was non-blocking.
 .It Bq Er ENETUNREACH
 The network isn't reachable from this host.
 .It Bq Er EADDRINUSE
@@ -131,9 +131,7 @@ with
 .Dv SO_ERROR
 to check for error conditions.
 .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.
 .El
 .Pp
 The following errors are specific to connecting names in the

Reply via email to