staticvoid netdClientInitImpl() { // Prevent netd from looping back fwmarkd connections to itself. It would work, but it's // a deadlock hazard and unnecessary overhead for the resolver. if (getuid() == 0 && strcmp(basename(getprogname()), "netd") == 0) {
async_safe_format_log(ANDROID_LOG_INFO, "netdClient", "Skipping libnetd_client init since *we* are netd"); return;
}
void* handle = dlopen("libnetd_client.so", RTLD_NOW); if (handle == nullptr) { // If the library is not available, it's not an error. We'll just use // default implementations of functions that it would've overridden. return;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.