rx: avoid nat ping during shutdown

shutdown_rx, unlike rx_Finalize, kills the socket before the conns.
since we call osi_NetSend directly, we lose. just do a simple
check for rxinit_status, and exit immediately before sending if rx
is not up.

Change-Id: Ie34a45a4c1c88fc5732801dcefec89cbc9764f81
Reviewed-on: http://gerrit.openafs.org/5377
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Derrick Brashear 2011-09-08 10:44:38 -04:00
parent 759c993c61
commit 8d939c08f6

View File

@ -143,6 +143,7 @@ rx_upcall(socket_t so, void *arg, __unused int waitflag)
void
osi_StopNetIfPoller(void)
{
shutdown_rx();
soclose(rx_socket);
if (afs_termState == AFSOP_STOP_NETIF) {
afs_termState = AFSOP_STOP_COMPLETE;