mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
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:
parent
759c993c61
commit
8d939c08f6
@ -143,6 +143,7 @@ rx_upcall(socket_t so, void *arg, __unused int waitflag)
|
|||||||
void
|
void
|
||||||
osi_StopNetIfPoller(void)
|
osi_StopNetIfPoller(void)
|
||||||
{
|
{
|
||||||
|
shutdown_rx();
|
||||||
soclose(rx_socket);
|
soclose(rx_socket);
|
||||||
if (afs_termState == AFSOP_STOP_NETIF) {
|
if (afs_termState == AFSOP_STOP_NETIF) {
|
||||||
afs_termState = AFSOP_STOP_COMPLETE;
|
afs_termState = AFSOP_STOP_COMPLETE;
|
||||||
|
Loading…
Reference in New Issue
Block a user