sd-varlink: fix bug when enqueuing messages with fds asynchronously
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Nov 2024 12:13:41 +0000 (13:13 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 26 Nov 2024 16:06:53 +0000 (16:06 +0000)
commit7b4b3a8f7b76f266438fafb225b7980db68a276e
treeca4974dab0720dc82226a04338ee407f02df125e
parent5bed97dd575dd1996638a46cc309c74f43d24e0e
sd-varlink: fix bug when enqueuing messages with fds asynchronously

When determining the poll events to wait for we need to take the queue
of pending messages that carry fds into account. Otherwise we might end
up not waking up if such an fd-carrying message is enqueued
asynchronously (i.e. not from a dispatch callback).
src/libsystemd/sd-varlink/sd-varlink.c