]> git.ipfire.org Git - thirdparty/systemd.git/commit
pager,agent: insist that we are called from the main thread
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Dec 2017 17:13:38 +0000 (18:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 12:27:27 +0000 (13:27 +0100)
commit85afeae88c59ce3e6fb534facbcc6fc819f95a0f
treebc243b9cc0905dd5f878e5a2dc9fce76f4884800
parentb4a343112e465be168e6f868003e3e6c9cc4dae7
pager,agent: insist that we are called from the main thread

We maintain static process-wide variables in these subsystems without
locking, hence let's refuse operation unless we are called from the main
thread (which we do anyway) just as a safety precaution.
src/shared/pager.c
src/shared/spawn-ask-password-agent.c
src/shared/spawn-polkit-agent.c