afs_int32 afs_termState = 0;
afs_int32 afs_gcpags = AFS_GCPAGS;
-int afs_shuttingdown = 0;
+enum afs_shutdown_state afs_shuttingdown = AFS_RUNNING;
int afs_cold_shutdown = 0;
int afs_resourceinit_flag = 0;
afs_int32 afs_nfs_server_addr;
void
afspag_Shutdown(void)
{
- if (afs_shuttingdown)
+ if (afs_shuttingdown != AFS_RUNNING)
return;
- afs_shuttingdown = 1;
+ afs_shuttingdown = AFS_SHUTDOWN;
afs_termState = AFSOP_STOP_RXCALLBACK;
rx_WakeupServerProcs();
while (afs_termState == AFSOP_STOP_RXCALLBACK)