From: Raghavendra. H. R <rag...@gm...> - 2017-08-31 09:19:37
|
Dear All, I'm a newbie with dbus IPC mechanism. I have one issue with dbus, looking forward for inputs which helps in resolving my issue. I'm running the dbus-daemon on a embedded device & getting the "DBUS_SESSION_BUS_ADDRESS" which I'm exporting on my shell. Now running my executable *"dbus_bin"* which as code something like below DBus::BusDispatcher dispatcher; int main() { DBus::default_dispatcher = &dispatcher; cout << "Before calling session BUS " << endl; DBus::Connection bus = DBus::Connection::SessionBus(); cout << "Before calling request name " << endl; bus.request_name("ib.si.notification"); cout << ": Starting the DBUS Server instance..." << endl; dispatcher.enter(); } When I run *"dbus_bin"* after getting the "DBUS_SESSION_BUS_ADDRESS" I can see that my program is getting stuck at *"bus.request_name" *& doesn't proceed. I'm not able to make out the problem. Please help me regarding this issue. -- Regards, Raghavendra. H. R (Raghu) |