{ "services", TRACE_SERVICES },
{ "properties", TRACE_PROPERTIES },
{ "sdktools", TRACE_SDKTOOLS },
- { "appcmd", TRACE_APPCMD },
{ NULL, 0 }
};
"%s", DISABLED);
}
- // sdbd log path
+ // sdbd log path
if(!request_capability_to_plugin(CAPABILITY_LOG_PATH, g_capabilities.log_path,
sizeof(g_capabilities.log_path))) {
D("failed to request. (%d:%d) \n", PLUGIN_SYNC_CMD_CAPABILITY, CAPABILITY_LOG_PATH);
"%s", UNKNOWN);
}
- // Application command support
- if(!request_capability_to_plugin(CAPABILITY_APPCMD, g_capabilities.appcmd_support,
- sizeof(g_capabilities.appcmd_support))) {
- D("failed to request. (%d:%d) \n", PLUGIN_SYNC_CMD_CAPABILITY, CAPABILITY_APPCMD);
- snprintf(g_capabilities.appcmd_support, sizeof(g_capabilities.appcmd_support),
- "%s", UNKNOWN);
- }
// Capability version
snprintf(g_capabilities.sdbd_cap_version, sizeof(g_capabilities.sdbd_cap_version),
}
}
-static void fork_prepare_handler(void)
-{
- sdb_mutex_lock(&D_lock);
-}
-
-static void fork_parent_handler(void)
-{
- sdb_mutex_unlock(&D_lock);
-}
-
-static void fork_child_handler(void)
-{
- sdb_mutex_unlock(&D_lock);
-}
-
int sdb_main(int is_daemon, int server_port)
{
#if !SDB_HOST
check_emulator_or_device();
load_sdbd_plugin();
-
+
init_capabilities();
sdb_trace_init();
}
umask(000);
-
- pthread_atfork(fork_prepare_handler, fork_parent_handler, fork_child_handler);
#endif
atexit(sdb_cleanup);