mirror of
https://github.com/systemd/systemd.git
synced 2025-01-07 21:18:41 +03:00
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:
parent
b1951bc83f
commit
e6958b7ea3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user