chiark / gitweb /
sd-bus: test-bus-kernel-benchmark: don't rely on fixed unique names
authorDaniel Mack <daniel@zonque.org>
Tue, 24 Feb 2015 13:01:36 +0000 (14:01 +0100)
committerDaniel Mack <daniel@zonque.org>
Tue, 24 Feb 2015 13:01:36 +0000 (14:01 +0100)
commitdef3f524a1e83e98b848ff98b40032ee59cbbf89
tree8ff1ba2ab225856b772d031d5ec5f3b0c367fd2b
parentfdd30a1530810b659345c565e97beef06b7af2fd
sd-bus: test-bus-kernel-benchmark: don't rely on fixed unique names

The kernel part of kdbus does not allow userspace to make any assumption on
which unique address the first user on the bus will get.

Instead, use sd_bus_get_unique_name() to get the server's address.
src/libsystemd/sd-bus/test-bus-kernel-benchmark.c