]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: handle session leader termination during deserialization more gracefully 39607/head
authorMike Yuan <me@yhndnzj.com>
Tue, 4 Nov 2025 20:13:49 +0000 (21:13 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 6 Nov 2025 19:53:49 +0000 (20:53 +0100)
commita6590235dfffc8a676a75b373d97f1db2ebf7079
tree2b8ad5765d50123045e707931b7722c3345eb0a2
parentc54112bdee1d32934e688961ca53e81ffff0c99a
logind: handle session leader termination during deserialization more gracefully

We track session leaders by pidfd precisely to make restarts reliable,
as leader exiting before deserialization is somewhat expected.
Such case is already handled gracefully (we'd GC sessions without leader
before kicking off the new cycle), but let's also tweak the log message
a bit to reduce annoyance.

Closes #39556
src/login/logind-session.c
src/login/logind.c