]> git.ipfire.org Git - thirdparty/systemd.git/commit
man: enchance sd_bus_set_watch_bind() example to handle one more failure
authorLuca Boccassi <bluca@debian.org>
Wed, 14 Feb 2024 17:14:21 +0000 (17:14 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 15 Feb 2024 14:19:39 +0000 (14:19 +0000)
commite07e7017bb65cd99aaa3dbb25fb7803759dc3be3
treec813c0c7deeaf79a431d9d6b0b99b2ec9f83124f
parentd0aef638ac43ad64df920d8b3f6c2d835db7643c
man: enchance sd_bus_set_watch_bind() example to handle one more failure

In case the D-Bus policy is not set up correctly the example just
loops forever. Check the return of sd_bus_request_name_async() in
a callback and exit if the error is not temporary.

Follow-up for 34bbda18a5f07fa5a52e8d85d20637ce1c00c4ec
man/sd_bus_service_reconnect.c