409
491
const unsigned char *port_path;
411
493
NSDebugLLog(@"NSMessagePort", @"removePort: %@ forName: %@", port, name);
413
495
path = [[self class] _pathForName: name];
415
501
f = fopen([path fileSystemRepresentation], "rt");
419
507
fgets(socket_path, sizeof(socket_path), f);
424
513
port_path = [(NSMessagePort *)port _name];
426
514
if (!strcmp((char*)socket_path, (char*)port_path))
428
516
unlink([path fileSystemRepresentation]);