chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:52 +0000 (07:49 +0200)
commit6ee75904e748798e2138425abe37068ed0c7c8d7
treedb8817dc75d9deb54af1301c81cf17ee1ef75fd8
parent634f9282e89e077a2a1d733621527ec427120e85
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-polkit-agent.c