]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: do not disconnect from bus when failed to install signal match 35779/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 29 Dec 2024 06:50:43 +0000 (15:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 29 Dec 2024 06:58:08 +0000 (15:58 +0900)
commitdb6b214f95aa42f9a9fa3d94a3c6492cc57b58fb
tree4844c8ce7d1d111fe687e383787c99c55bca56de
parent7baf4d234a70f136014f9e92f00c078a55c7adba
core: do not disconnect from bus when failed to install signal match

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 #30573, but should improve
the situation when the issue is triggered.
src/core/unit.c