[mpich2-commits] r7668 - mpich2/trunk/src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp

goodell at mcs.anl.gov goodell at mcs.anl.gov
Thu Jan 6 13:07:43 CST 2011


Author: goodell
Date: 2011-01-06 13:07:43 -0600 (Thu, 06 Jan 2011)
New Revision: 7668

Modified:
   mpich2/trunk/src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/socksm.c
Log:
check EAGAIN and EWOULDBLOCK separately for greater portability (see #1155)

No reviewer.

Modified: mpich2/trunk/src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/socksm.c
===================================================================
--- mpich2/trunk/src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/socksm.c	2011-01-05 21:45:38 UTC (rev 7667)
+++ mpich2/trunk/src/mpid/ch3/channels/nemesis/nemesis/netmod/tcp/socksm.c	2011-01-06 19:07:43 UTC (rev 7668)
@@ -1884,7 +1884,7 @@
             MPIU_DBG_MSG_FMT(NEM_SOCK_DET, VERBOSE, (MPIU_DBG_FDEST, "after accept, l_sc=%p lstnfd=%d connfd=%d, errno=%d:%s ", l_sc, l_sc->fd, connfd, errno, MPIU_Strerror(save_errno)));
             if (errno == EINTR) 
                 continue;
-            else if (errno == EWOULDBLOCK)
+            else if (errno == EWOULDBLOCK || errno == EAGAIN)
                 break; /*  no connection in the listen queue. get out of here.(N1) */
 
             MPIU_ERR_SETANDJUMP1(mpi_errno, MPI_ERR_OTHER, "**sock_accept", "**sock_accept %s", MPIU_Strerror(save_errno));



More information about the mpich2-commits mailing list