mirror of https://github.com/macssh/macssh.git
clove provider upon kOTProviderWillClose
This commit is contained in:
parent
bad7115afe
commit
bd8f56c934
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue