]> git.ipfire.org Git - thirdparty/systemd.git/commit
Fix race in io.systemd.Machine.Open() test case (#36410)
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 20 Feb 2025 18:53:00 +0000 (19:53 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2025 18:53:00 +0000 (19:53 +0100)
commitf1f28bbbb766268fbd9efad24d8158acd789974a
treeb64db67ac5064ab0ab4b0b9f256893b236af6ad6
parent25ec3fdfd309abbaf28b9d0ff19a99cbca016d61
parent40e22609e8dad046a984eaa84dba2a26b16d5a9c
Fix race in io.systemd.Machine.Open() test case (#36410)

This started out as a simple attempt to fix a race in an existing test
case for io.systemd.Machine.Open(). To address it nicely I added some
machinery to varlinkctl and systemd-notify though, and because of that I
refacting reception of sd_notify() messages in various places of our
codebase. So it became much much bigger.

This ports all receivers of sd_notify() messages over to a new common
implementation, except for one: the one in PID1. It's more powerful than
the others, since it accepts fds too. I think we should generalize
notify_recv() to cover that too, it's not that much more work, but for
now I didn't want to add even more refactorings on top, and this can
easily happen later separately, hence I left it out for now.