summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-08-06 19:35:44 +0200
committerSven Eden <sven.eden@prydeworx.com>2018-10-29 10:18:35 +0100
commitd618a4a142ddad5e204c671dcf1109545fecd206 (patch)
treeba7f16249d171219b4d2a213d858b9c5b35075ba
parent4ca729a0f51264a169b209d879661319b81ded51 (diff)
logind: propagate session stop errors
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. (cherry picked from commit e6958b7ea33813b085966ac25817a957c0dad7f9)
-rw-r--r--src/login/logind-seat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c
index 8e5c5ac4c..c8fc4bb8e 100644
--- a/src/login/logind-seat.c
+++ b/src/login/logind-seat.c
@@ -435,7 +435,7 @@ int seat_start(Seat *s) {
}
int seat_stop(Seat *s, bool force) {
- int r = 0;
+ int r;
assert(s);
@@ -445,7 +445,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);