]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: propagate session stop errors
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Aug 2018 17:35:44 +0000 (19:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 13 Oct 2018 10:59:29 +0000 (12:59 +0200)
Let's propagate errors from stopping sessions via seat_stop(). This is
similar to how we propagate such errors in user_stop() for all sessions
associated with a user.

Note that we propagate these errors, but we don't abort the function.

src/login/logind-seat.c

index f0e5aa1988cf62ac80b1e5e6c51de52a328fd0a8..cc33799230867eb066562effe9c6914314d614fa 100644 (file)
@@ -419,7 +419,7 @@ int seat_start(Seat *s) {
 }
 
 int seat_stop(Seat *s, bool force) {
-        int r = 0;
+        int r;
 
         assert(s);
 
@@ -429,7 +429,7 @@ int seat_stop(Seat *s, bool force) {
                            "SEAT_ID=%s", s->id,
                            LOG_MESSAGE("Removed seat %s.", s->id));
 
-        seat_stop_sessions(s, force);
+        r = seat_stop_sessions(s, force);
 
         (void) unlink(s->state_file);
         seat_add_to_gc_queue(s);