]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: do not disconnect from bus when failed to install signal match (#35779)
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 3 Jan 2025 15:45:50 +0000 (16:45 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Jan 2025 15:45:50 +0000 (16:45 +0100)
commit37ce3fd2b7dd8f81f6f4bca2003961a92b2963dc
tree75f9647c71e56562639b8b78df67e348e7e804c3
parent9f97f2899af262810ddb91c75aa64f4706f4f6ae
parentdb6b214f95aa42f9a9fa3d94a3c6492cc57b58fb
core: do not disconnect from bus when failed to install signal match (#35779)

If bus_add_match_full() is called without install callback and we failed
to install the signal match e.g. by timeout, then add_match_callback()
will disconnect from the bus. Let's use a custom install handler and
handle failures gracefully.

This does not *solve* the root cause of issue
https://github.com/systemd/systemd/issues/30573, but should improve the
situation when the issue is triggered.