diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-19 04:17:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-19 04:17:00 +0100 |
commit | 09365592341b4ba4ceca677bb551dcde811e0333 (patch) | |
tree | 662f7de7e71fe5d05226164cc3a90088dfbf7cf6 /src/libsystemd/sd-bus/bus-objects.c | |
parent | 4f10118016f9b2fd7e1d26c9ef7d91eb33fba694 (diff) |
sd-bus: add proper monitoring API
Diffstat (limited to 'src/libsystemd/sd-bus/bus-objects.c')
-rw-r--r-- | src/libsystemd/sd-bus/bus-objects.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c index 7d325fab33..08792fea22 100644 --- a/src/libsystemd/sd-bus/bus-objects.c +++ b/src/libsystemd/sd-bus/bus-objects.c @@ -1304,6 +1304,9 @@ int bus_process_object(sd_bus *bus, sd_bus_message *m) { assert(bus); assert(m); + if (bus->hello_flags & KDBUS_HELLO_MONITOR) + return 0; + if (m->header->type != SD_BUS_MESSAGE_METHOD_CALL) return 0; |