mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
* Source/NSDistributedNotificationCenter.m: Added a short wait to the
_connect method when starting GDNC to correct bug#22351. Worked with Riccardo Motolla to test this (riccardo@kaffe.org). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26082 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8fd2c9e2bd
commit
9d416f773b
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-02-17 19:21-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSDistributedNotificationCenter.m: Added a short wait to the
|
||||
_connect method when starting GDNC to correct bug#22351.
|
||||
Worked with Riccardo Motolla to test this (riccardo@kaffe.org).
|
||||
|
||||
2008-02-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Additions/GSMime.m: Fix errors in code for folding header
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
#include "Foundation/NSHost.h"
|
||||
#include "Foundation/NSPortNameServer.h"
|
||||
#include "Foundation/NSDebug.h"
|
||||
|
||||
#include "Foundation/NSThread.h"
|
||||
#include "../Tools/gdnc.h"
|
||||
|
||||
|
||||
|
@ -736,6 +736,14 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
}
|
||||
[NSTask launchedTaskWithLaunchPath: cmd arguments: args];
|
||||
|
||||
/*
|
||||
* Sleep for 3 seconds to prevent excessive polling and to
|
||||
* give the GDNC process some time to start. On some systems
|
||||
* it is failing to start because the polling is eating up
|
||||
* all of the file descriptors.
|
||||
*/
|
||||
[NSThread sleepForTimeInterval: 3.0];
|
||||
|
||||
limit = [NSDate dateWithTimeIntervalSinceNow: 5.0];
|
||||
while (_remote == nil && [limit timeIntervalSinceNow] > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue