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.
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(-)