mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Don't use getpid() - use globallyUniqueString instead
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3635 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
204b4980d1
commit
7432e086e2
1 changed files with 3 additions and 3 deletions
|
@ -627,7 +627,7 @@ static NSString *disabledName = @".GNUstepDisabled";
|
|||
NSMutableSet *keyEquivalents;
|
||||
unsigned pos;
|
||||
unsigned loc0;
|
||||
unsigned loc1;
|
||||
unsigned loc1 = 0;
|
||||
SEL sel = @selector(doService:);
|
||||
NSMenu *submenu = nil;
|
||||
|
||||
|
@ -763,8 +763,8 @@ static NSString *disabledName = @".GNUstepDisabled";
|
|||
if (result == NSAlertDefaultReturn || result == NSAlertOtherReturn)
|
||||
{
|
||||
if (result == NSAlertOtherReturn)
|
||||
appName = [NSString stringWithFormat: @"%@_%d",
|
||||
appName, (int)getpid()];
|
||||
appName = [[NSProcessInfo processInfo] globallyUniqueString];
|
||||
|
||||
[[NSPortNameServer defaultPortNameServer] removePortForName: appName];
|
||||
|
||||
NS_DURING
|
||||
|
|
Loading…
Reference in a new issue