]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: support deserializing session leader through pidfdid
authorMike Yuan <me@yhndnzj.com>
Fri, 24 Oct 2025 21:09:50 +0000 (23:09 +0200)
committerMike Yuan <me@yhndnzj.com>
Sat, 25 Oct 2025 17:42:58 +0000 (19:42 +0200)
commit45eea629e3b3a640bf6a5cd13f4c73c86b426b11
treed3c9c8803009715fa690f73ce9d4968edbec2702
parentf03b49b079fd4ecb6407e74a116995ded906325a
logind: support deserializing session leader through pidfdid

People make weird assumptions around state preservation and
expect logind to be stoppable. While this is realistically
not OK we can probably improve things a little.

This complements f01d8658a3a57d05a5156aefd32d8137c3ee3996 and
adds support for deserializing the LEADER_PIDFDID= field.
We still prioritize pidfd if got one from fdstore (as with
service_notify_message_parse_new_pid() in pid1), but otherwise
this should make logind restart more robust when fdstore
gets spuriously cleared.

Fixes #39437
src/login/logind-session.c
src/login/logind.c