chiark / gitweb /
logind: when creating the scope job fails, return this immediately to the client...
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2013 21:33:17 +0000 (23:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2013 21:41:03 +0000 (23:41 +0200)
Otherwise we'll hanging for the job to finish without any job existing.

Similar, for machined.

src/login/logind-session.c
src/machine/machine.c

index 2892c38..3c67f86 100644 (file)
@@ -480,6 +480,7 @@ static int session_start_scope(Session *s) {
                         dbus_error_free(&error);
 
                         free(scope);
+                        return r;
                 } else {
                         s->scope = scope;
 
index d75c338..591a656 100644 (file)
@@ -247,6 +247,7 @@ static int machine_start_scope(Machine *m) {
                         dbus_error_free(&error);
 
                         free(scope);
+                        return r;
                 } else {
                         m->scope = scope;