Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2009 21:06:02 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189543 - head/tools/regression/sockets/unix_gc
Message-ID:  <200903082106.n28L62EF096899@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Sun Mar  8 21:06:02 2009
New Revision: 189543
URL: http://svn.freebsd.org/changeset/base/189543

Log:
  In UNIX domain socket GC regression test, after setting a socket
  non-blocking, EINPROGRESS is an acceptable result from connect().

Modified:
  head/tools/regression/sockets/unix_gc/unix_gc.c

Modified: head/tools/regression/sockets/unix_gc/unix_gc.c
==============================================================================
--- head/tools/regression/sockets/unix_gc/unix_gc.c	Sun Mar  8 19:09:55 2009	(r189542)
+++ head/tools/regression/sockets/unix_gc/unix_gc.c	Sun Mar  8 21:06:02 2009	(r189543)
@@ -160,7 +160,7 @@ static void
 my_connect(int sock, struct sockaddr *sa, socklen_t len)
 {
 
-	if (connect(sock, sa, len) < 0)
+	if (connect(sock, sa, len) < 0 && errno != EINPROGRESS)
 		err(-1, "%s: connect", test);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903082106.n28L62EF096899>