From: Derrick Brashear Date: Thu, 8 Sep 2011 14:44:38 +0000 (-0400) Subject: rx: avoid nat ping during shutdown X-Git-Tag: upstream/1.8.0_pre1^2~3287 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8d939c08f60b44c83ed8db8892b93563ddea0e15;p=packages%2Fo%2Fopenafs.git 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 Tested-by: Derrick Brashear --- diff --git a/src/rx/DARWIN/rx_knet.c b/src/rx/DARWIN/rx_knet.c index 0ea37ab90..70233c8f0 100644 --- a/src/rx/DARWIN/rx_knet.c +++ b/src/rx/DARWIN/rx_knet.c @@ -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;