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