baton->dlerror();
}
+// XXX: where you find this needs to be relative to CoreFoundation (or something)
+// XXX: this needs to check if the framework is under PrivateFrameworks instead
#define Framework(framework) \
"/System/Library/Frameworks/" #framework ".framework/" #framework
void (*CYHandleServer)(pid_t);
dlset(baton, CYHandleServer, "CYHandleServer", handle);
+ if (CYHandleServer == NULL) {
+ baton->dlerror();
+ return NULL;
+ }
- if (CYHandleServer != NULL)
- CYHandleServer(baton->pid);
-
+ CYHandleServer(baton->pid);
return NULL;
}