chiark / gitweb /
logind,machined,run: properly invoke StartTransientUnit() bus call
[elogind.git] / src / run / run.c
index 1eeb5c6e56334d2d416e065af2892362d70f8407..2e0cd1a6d228792064ff6b2279cd1f904a9f1e09 100644 (file)
@@ -237,7 +237,11 @@ static int message_start_transient_unit_send(sd_bus *bus, sd_bus_message *m, sd_
         if (r < 0)
                 return r;
 
-        return sd_bus_send_with_reply_and_block(bus, m, 0, error, reply);
+        r = sd_bus_message_append(m, "a(sa(sv))", 0);
+        if (r < 0)
+                return r;
+
+        return sd_bus_call(bus, m, 0, error, reply);
 }
 
 static int start_transient_service(