rx: avoid nat ping during shutdown
authorDerrick Brashear <shadow@dementix.org>
Thu, 8 Sep 2011 14:44:38 +0000 (10:44 -0400)
committerDerrick Brashear <shadow@dementix.org>
Tue, 13 Sep 2011 19:20:55 +0000 (12:20 -0700)
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>

src/rx/DARWIN/rx_knet.c

index 0ea37ab..70233c8 100644 (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;