chiark / gitweb /
bus: keep kernel bus fd around during entire life-time of bus
authorLennart Poettering <lennart@poettering.net>
Fri, 17 May 2013 00:22:37 +0000 (02:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 May 2013 02:26:27 +0000 (04:26 +0200)
commitf54514f3542db9b1f1a6f7546472718ce0d02aae
tree5aca2b916d9d91f87b60b8ec57035f7d53900593
parent8fd57568e6e82aafe153ec1f34cca36c9ccee455
bus: keep kernel bus fd around during entire life-time of bus

We need this since we might need to invoke the release ioctl for
messages. Since we don't want to add any locking for that we simply keep
a reference to the bus and then rely that the fd stays valid all the
time.
src/libsystemd-bus/bus-internal.h
src/libsystemd-bus/bus-message.c
src/libsystemd-bus/sd-bus.c