]> git.neil.brown.name Git - susman.git/commit
lsusd: allow clients to abort this suspend cycle.
authorNeilBrown <neilb@suse.de>
Sun, 22 Apr 2012 04:19:19 +0000 (14:19 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 22 Apr 2012 04:19:19 +0000 (14:19 +1000)
commit591e7bcc6036b6aea9e6046c0d9d6f58b07983c4
treebd6743860faaf047c3e386d8df873256ad7f3333
parent2d664d44c257f665e705f3cbd33f31547f84fcaa
lsusd: allow clients to abort this suspend cycle.

When an event happens in the kernel, it increments the
wakeup_count which aborts the current suspend cycle.
We need something similar for user-space.

So use the atime of the 'disabled' file.  Any process that
triggers an event for another process to read can simply
read from this file and thus abort the current suspend (if there
is one).

Signed-off-by: NeilBrown <neilb@suse.de>
libsus.h
lsusd.c
suspend.py
suspend_block.c