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.
This commit is contained in:
Lennart Poettering 2018-08-06 19:35:44 +02:00
parent b1951bc83f
commit e6958b7ea3
1 changed files with 2 additions and 2 deletions

View 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);