]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind-session: be more specific about session_kill() errors 35150/head
authorMike Yuan <me@yhndnzj.com>
Wed, 13 Nov 2024 16:41:14 +0000 (17:41 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 13 Nov 2024 16:49:07 +0000 (17:49 +0100)
commit9c6dc69f3e3d338148e0bf6e19b9d0107856ac26
tree107c40dc68005cfc6c26f2dfd7071a1b59ff1aad
parent2f2058da0b88535cb3a95fc98e7b2f1ae4d35601
logind-session: be more specific about session_kill() errors

When kill_whom == _ALL, there can be two cases that lead to
ESRCH: the session expects no scope at all or the scope is
not active. Let's distinguish the two cases.
src/login/logind-session-dbus.c
src/login/logind-session.c
src/login/logind-session.h