Enable keepalive for message port connections on windows

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27320 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-12-17 08:49:50 +00:00
parent a4f370cebb
commit 27b8c6be12
3 changed files with 17 additions and 12 deletions

View file

@ -1634,6 +1634,16 @@ static NSLock *cached_proxies_gate = nil;
- (void) setRootObject: (id)anObj
{
setRootObjectForInPort(anObj, _receivePort);
#if defined(__MINGW32__)
/* On ms-windows, the operating system does not inform us when the remote
* client of a message port goes away ... so we need to enable keepalive
* to detect that condition.
*/
if ([_receivePort isKindOfClass: [NSMessagePort class]])
{
[self _enableKeepalive];
}
#endif
}
/**