clove provider upon kOTProviderWillClose

This commit is contained in:
chombier 2001-03-12 17:46:14 +00:00
parent bad7115afe
commit bd8f56c934
1 changed files with 6 additions and 4 deletions

View File

@ -190,10 +190,9 @@ pascal void GUSIOTNetDBNotify(
if (code != kOTProviderWillClose)
result = 0;
else {
/* NONO : need to re-create the fSvc */
netdb->fSvc = static_cast<InetSvcRef>(NULL);
netdb->fCreationContext = static_cast<GUSIContext *>(NULL);
/* NONO */
OTCloseProvider(netdb->fSvc);
netdb->fSvc = NULL;
netdb->fCreationContext = NULL;
}
break;
}
@ -203,6 +202,9 @@ pascal void GUSIOTNetDBNotify(
}
/*
* we need to track open()/dup()/close()/socket() calls to close files/sockets
* upon abort/exit