diff options
author | Ray Strode <rstrode@redhat.com> | 2018-08-30 13:06:54 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-08-31 16:43:21 -0400 |
commit | 83666d60c8d08b89bfd2299323156cb5eb94e2ef (patch) | |
tree | 4b20a4fca331628aff0aca416f8d140e09a7bcc8 /chooser/Makefile.am | |
parent | 591bf8f4c7b8441d169e7a7483d8d3424ee1612e (diff) | |
download | gdm-83666d60c8d08b89bfd2299323156cb5eb94e2ef.tar.gz |
common: don't bail if session disappears out from under us
It's entirely possible for a session returned by
sd_seat_get_sessions to disappear immediately after the
sd_seat_get_sessions call returns. This is especially
likely at logout time where the session will briefly be
in the "closing" state before getting reaped.
If that happens when we're looking for a greeter session, we
stop looking for a greeter session and bail out all confused.
This commit fixes the confusion by gracefully handling the
session disappearing by just proceeding to the next session
in the list.
This commit is very similar to commit 155ee7eca which got
accidentally reverted during code consolidation. The main
difference is this commit checks the correct error code
of -ENXIO instead of -ENOENT, so it might actually fix
what it's ostensibly supposed to fix.
Diffstat (limited to 'chooser/Makefile.am')
0 files changed, 0 insertions, 0 deletions