]> git.openfabrics.org - ~ardavis/dapl.git/commit
The connection request thread adds sockets to a select list unless
authorSean Hefty <sean.hefty@intel.com>
Fri, 10 Apr 2009 15:17:32 +0000 (08:17 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Fri, 10 Apr 2009 15:17:32 +0000 (08:17 -0700)
commitd710c5327e05a40796341d16b45a2b098b03f588
tree3a58b5809a2f3d1ad6357bb7f584598dca96c748
parent0be961c432f897d4f92d9a24dcb7c42ad30ea160
The connection request thread adds sockets to a select list unless
the cr->socket is invalid and the cr request state is set to destroy.  If the
cr->socket is invalid, but the cr->state is not destroy, then the cr->socket
is added to an FD set for select/poll.  This results in select/poll
returning an error when select is called.  As a result, the cr thread never
actually blocks during this state.

Fix this by only destroying a cr based on its state being set to destroy
and skip adding cr->sockets to the FD set when they are invalid.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
dapl/openib_scm/dapl_ib_cm.c