]> git.ipfire.org Git - thirdparty/systemd.git/commit
varlink: add new call varlink_server_loop_auto()
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Sep 2023 13:57:39 +0000 (15:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Oct 2023 09:49:38 +0000 (11:49 +0200)
commit2e5edb93b7e55de6465954d6fa03a384e52b00ae
tree4ed346d16163af3b67e55cfba427199c51d85ba9
parent206504a594492f4b97259bbe345dde4e520df7dc
varlink: add new call varlink_server_loop_auto()

This is a helper call that runs the specified VarlinkServer object in an
event loop, and exits once no more connections exist.

This is useful for pure varlink servers (i.e. those which only server
varlink requests and do nothing else), to run as long as there's
something to do and exit right after.
src/shared/varlink.c
src/shared/varlink.h