]> git.michaelhowe.org Git - packages/o/openafs.git/commit
FBSD: clean up rx_socket teardown
authorBen Kaduk <kaduk@mit.edu>
Sun, 28 Nov 2010 04:25:03 +0000 (23:25 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 7 Dec 2010 05:36:17 +0000 (21:36 -0800)
commit1dd1ff13b607ddac781604d245f0e0fcb0df26e8
treedf31503425489edd5be8fc4ae8eaa399cca4a30e
parentc945f17666ad5a4cf36545476d46951732c7e8db
FBSD: clean up rx_socket teardown

We had previously been waiting for the SO_ISDISCONNECTED flag
to show up in the so_state field, but the flags are not really
used for stateless protocols such as UDP, and that flag never
shows up.  Even with a full three-second wait, the rxk_Listener
sometimes still failed to fully terminate, preventing the reuse
of the rx port for a restarted afsd.
Copy from Solaris and loop until rxk_ListenerPid is zero, doing
bogus one-byte NetSends in the body of the loop.

Reviewed-on: http://gerrit.openafs.org/3391
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 622403c87a8cbcedcd1212fd32414285d103887b)

Change-Id: Ic5cfc4db2ff5b55730de31832b64bc1bf0696767
Reviewed-on: http://gerrit.openafs.org/3459
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/rx/FBSD/rx_knet.c