return VC_ERROR_OPERATION_FAILED;
}
+ dbus_connection_set_exit_on_disconnect(g_conn_sender, false);
+
g_conn_listener = dbus_bus_get_private(DBUS_BUS_SESSION, &err);
if (dbus_error_is_set(&err)) {
return VC_ERROR_OPERATION_FAILED;
}
+ dbus_connection_set_exit_on_disconnect(g_conn_listener, false);
+
int pid = getpid();
char service_name[64];
}
return result;
-}
\ No newline at end of file
+}
return VC_ERROR_OPERATION_FAILED;
}
+ dbus_connection_set_exit_on_disconnect(g_m_conn_sender, false);
+
/* connect to the DBUS system bus, and check for errors */
g_m_conn_listener = dbus_bus_get_private(DBUS_BUS_SESSION, &err);
return VC_ERROR_OPERATION_FAILED;
}
+ dbus_connection_set_exit_on_disconnect(g_m_conn_listener, false);
+
SLOG(LOG_DEBUG, TAG_VCM, "service name is %s", VC_MANAGER_SERVICE_NAME);
/* register our name on the bus, and check for errors */
return VC_ERROR_OPERATION_FAILED;
}
+ dbus_connection_set_exit_on_disconnect(g_w_conn_sender, false);
+
g_w_conn_listener = dbus_bus_get_private(DBUS_BUS_SESSION, &err);
if (dbus_error_is_set(&err)) {
return VC_ERROR_OPERATION_FAILED;
}
+ dbus_connection_set_exit_on_disconnect(g_w_conn_listener, false);
+
int pid = getpid();
char service_name[64];
return VCD_ERROR_OPERATION_FAILED;
}
+ dbus_connection_set_exit_on_disconnect(g_conn_sender, false);
+
/* connect to the bus and check for errors */
g_conn_listener = dbus_bus_get_private(DBUS_BUS_SESSION, &err);
return VCD_ERROR_OPERATION_FAILED;
}
+ dbus_connection_set_exit_on_disconnect(g_conn_listener, false);
+
/* request our name on the bus and check for errors */
ret = dbus_bus_request_name(g_conn_listener, VC_SERVER_SERVICE_NAME, DBUS_NAME_FLAG_REPLACE_EXISTING, &err);