[systemd-devel] [PATCHv3] bus-driverd: Fix return code in driver_request_name

Lennart Poettering lennart at poettering.net
Tue Dec 17 11:43:17 PST 2013


On Tue, 17.12.13 17:31, Lukasz Skalski (l.skalski at partner.samsung.com) wrote:

> RequestName return codes should be consistent with Dbus Specification.
> 
> VALUE - DESCRIPTION
> 1-The caller is now the primary owner of the name, replacing any previous owner,
> 2-The name already had an owner (QUEUE flag was not specified),
> 3-The name already has an owner (QUEUE flag was specified),
> 4-Application trying to request ownership of a name is already the
> owner of it.

Applied. Made one change though: if we encounter an error from the ioctl
that we didn't expect, then return that as error to the client.

Thanks!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list