]> git.ipfire.org Git - thirdparty/systemd.git/commit
login: don't remove all devices from PID1 when only one was removed
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 6 Mar 2018 15:59:38 +0000 (15:59 +0000)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 10 Mar 2018 10:46:01 +0000 (10:46 +0000)
commit1bef256cf5838d4bbc55654206aa6254d7fddb59
treeb1f4be671069da311d2f6f7f6eff28b7d60ff80e
parent8b983cc74a85bda4d662fd822b433327fc568d40
login: don't remove all devices from PID1 when only one was removed

FDSTOREREMOVE=1 removes all fds with the specified name.  And we had named
the fds after the session.  Better fix that.

Closes #8344.

AFAICT there's no point providing compatibility code for this transition.
No-one would be restarting logind on a system with a GUI (where the
session devices are used), because doing so has been killing the GUI, and
even causing startup of the GUI to fail leading to a restart loop.

Upgrading logind on a running system with a GUI might start being possible
after this commit (and after also fixing the display server of your
choice).
src/login/logind-session-device.c
src/login/logind.c