]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/machine/machined.h
machined: rework referencing of machine scopes from machined, too
authorLennart Poettering <lennart@poettering.net>
Sun, 7 Oct 2018 12:50:11 +0000 (14:50 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Nov 2018 16:15:34 +0000 (17:15 +0100)
commitb92d0b4c5adef37e9de8f6cc22a0e27b97fcf3ad
tree767d4e94958f6f530da1b95c349a6d4ed8b26591
parent1d78fea2d6230e0aafa2603abc8f1f51966ef134
machined: rework referencing of machine scopes from machined, too

When a machine scope is registered by machined, let's add a reference to
it, and change the GC mode so that the unit is cleaned up as soon as
machined drops the reference, regardless of the fail state.

Fixes: #2809
src/machine/machine.c
src/machine/machined-dbus.c
src/machine/machined.h