chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
machine: properly distuingish created and registered machines
[elogind.git]
/
src
/
machine
/
machined-dbus.c
diff --git
a/src/machine/machined-dbus.c
b/src/machine/machined-dbus.c
index ffcd7c026a310552dd7fffa91035458eff634658..a041444b735a5c558b690eb0165485d511f612a7 100644
(file)
--- a/
src/machine/machined-dbus.c
+++ b/
src/machine/machined-dbus.c
@@
-223,7
+223,6
@@
static int method_create_or_register_machine(Manager *manager, sd_bus_message *m
m->leader = leader;
m->class = c;
m->id = id;
- m->registered = true;
if (!isempty(service)) {
m->service = strdup(service);
@@
-291,6
+290,8
@@
static int method_register_machine(sd_bus *bus, sd_bus_message *message, void *u
goto fail;
}
+ m->registered = true;
+
r = machine_start(m, NULL, error);
if (r < 0)
goto fail;