linux: Use inhibitor lock to guard poll pausing

System Internals / UPower - Christian Kellner [kellner.me] - 25 March 2017 13:07 EDT

Use an inhibitor lock obtained via logind to make sure the polling is paused before the system is put to sleep, rather than racing with the suspension.

https://bugs.freedesktop.org/show_bug.cgi?id=99763

09cdb0c linux: Use inhibitor lock to guard poll pausing
src/linux/Makefile.am | 5 ++-
src/linux/up-backend.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share