[systemd-devel] Opposite of sd_bus_add_match

Lennart Poettering lennart at poettering.net
Wed May 17 09:22:20 UTC 2017


On Sat, 13.05.17 10:57, Federico Di Pierro (nierro92 at gmail.com) wrote:

> Hi,
> 
> i cannot find in doc neither in source a sd_bus_remove_match function.
> How can i properly stop listening on a match? I cannot find any information
> with google; i only see it seems it existed time ago (around systemd 210).

As you already found out, use the "sd_bus_slot" parameter for getting
a ref to an installed match that you can use to remove it again.

If you specify NULL as slot parameter the lifetime of the match is
bound to the bus object itself, and you cannot remove it any earlier.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list