关于进程间通讯

建立了一个daemon进程 想从deb安装的app发送消息通知这个daemon并传递写参数过去
用的CPDistributedMessagingCenter 但是daemon 没收到消息
daemon里的代码: NSLog(@“iOSRE: setup success”);
CPDistributedMessagingCenter *messagingCenter;
// Center name must be unique, recommend using application identifier.
messagingCenter = [CPDistributedMessagingCenter centerNamed:@“com.ytx.daemontest”];
[messagingCenter registerForMessageName:@“message” target:self selector:@selector(handleMessageNamed:userInfo:)];
[messagingCenter runServerOnCurrentThread];
app发送消息代码:
CPDistributedMessagingCenter *messagingCenter;
messagingCenter = [CPDistributedMessagingCenter centerNamed:@“com.ytx.daemontest”];
NSLog(@“iOSRE: %@”,messagingCenter);
NSDictionary *dic = [messagingCenter sendMessageAndReceiveReplyName:@“message” userInfo:nil];

syslog里面打印出了setup success收到通知处理的函数就是一个简单的nslog没在syslog里出现

收到了。。。main里面没写CFRunLoopRun()