chiark / gitweb /
shared/sleep-fix: fix check if s-then-h is possible
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Apr 2018 09:39:14 +0000 (11:39 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitcdb74e6e80ce1f932e43a201cce0f9438373b0b7
tree44ffb4649eefa4a2b199302a01e2925592b22b85
parent75dc5f2e01ff9ec21aa29e7ee54a742d31e6aefc
shared/sleep-fix: fix check if s-then-h is possible

can_sleep() returns 0 if the operation is impossible, but
the code assumed that negative is returned in that case,
in effect reporting s2h was possible even if hibernation or
suspend were not possible.
src/shared/sleep-config.c