]> git.michaelhowe.org Git - packages/o/openafs.git/commit
rx: Reset fd_set in LWP rxi_Sendmsg
authorAndrew Deason <adeason@sinenomine.net>
Mon, 21 Feb 2011 18:39:48 +0000 (12:39 -0600)
committerDerrick Brashear <shadow@dementia.org>
Sun, 27 Feb 2011 18:10:04 +0000 (10:10 -0800)
commit566f4f198a2e1e7cc05502bec1db267965a5ccc6
treec276b42cbe0d456c4ebff770812976240cf2a8d1
parent4a068778bd6f3b6d74e40091c124e1db985262c6
rx: Reset fd_set in LWP rxi_Sendmsg

When we select() on the socket fd in rxi_Sendmsg, we do not reset the
fd_set, and just use the same memory for any necessary subsequent
select()s. However, if the select returned on EINTR, the fd_set may be
cleared, and so we may try to select() on an empty fd_set forever. To
be sure that we don't do that, reset the fd_set to the socket fd every
time.

Reviewed-on: http://gerrit.openafs.org/4028
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 63fb786c541926dbf03a9452288c6a938c7cd6c4)

Change-Id: I4d0cc939065c39ca2478006e05fae025921af5b8
Reviewed-on: http://gerrit.openafs.org/4089
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/rx/rx_lwp.c