mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-29 04:55:26 +03:00
logind: never select closing sessions for a VT
If a session is in closing state (and already got rid of its VT), then never re-select it for that VT. There is no reason why we should grant something to a session that is already going away *AND* already got rid of exactly that.
This commit is contained in:
parent
304ae2b9a1
commit
2810332843
@ -486,7 +486,7 @@ void seat_evict_position(Seat *s, Session *session) {
|
||||
* position (eg., during gdm->session transition), so let's look
|
||||
* for it and set it on the free slot. */
|
||||
LIST_FOREACH(sessions_by_seat, iter, s->sessions) {
|
||||
if (iter->position == pos) {
|
||||
if (iter->position == pos && session_get_state(iter) != SESSION_CLOSING) {
|
||||
s->positions[pos] = iter;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user