← Back to team overview

touch-packages team mailing list archive

[Bug 1329211] Re: core::dbus::Service constructor ignores return value of dbus_request_name(), hiding failures

 

** Branch linked: lp:ubuntu/utopic-proposed/dbus-cpp

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dbus-cpp in Ubuntu.
https://bugs.launchpad.net/bugs/1329211

Title:
  core::dbus::Service constructor ignores return value of
  dbus_request_name(), hiding failures

Status in DBus C++:
  In Progress
Status in “dbus-cpp” package in Ubuntu:
  New

Bug description:
  The core::dbus::Service constructor ignores the return value of
  dbus_bus_request_name().  This means that a service might start but
  never be able to handle any method calls because its well known name
  is owned by someone else.

  When used with the core::dbus::Skeleton type, the name request flags
  are do_not_queue and replace_existing.  Looking at the libdbus API
  docs here:

  http://dbus.freedesktop.org/doc/api/html/group__DBusBus.html#ga8a9024c78c4ea89b6271f19dbc7861b2

  The function could return one of:

   * DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER
   * DBUS_REQUEST_NAME_REPLY_EXISTS
   * DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER

  The "exists" response should probably be treated as an error.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus-cpp/+bug/1329211/+subscriptions