-
Committer:
Seth Forshee
-
Date:
2014-01-06 16:12:54 UTC
-
Revision ID:
seth.forshee@canonical.com-20140106161254-4tgiff0pwbg2g3f4
libsuspend: Fix earlysuspend error checking on writes
earlysuspend_{enter,exit}() could wait on the framebuffer state
to change in some cases when the write to /sys/power/state
failed. Erroneously waiting on the framebuffer state to change
could potentially block mainloop execution indefinitely, so be
conservative about doing so. Only wait if exactly the expected
number of bytes is written.