Simpler error handling for suspend()/hibernate()
authorjca <jca@openbsd.org>
Sun, 18 Apr 2021 23:51:47 +0000 (23:51 +0000)
committerjca <jca@openbsd.org>
Sun, 18 Apr 2021 23:51:47 +0000 (23:51 +0000)
commitc186fadc8760f399c3784db2d33cd961a9e3a7e9
tree2bcf3d0b62a8ff44ada1f30779733c82a990440b
parenteb43b0d362e4b4c1a52331b657c2867e36492069
Simpler error handling for suspend()/hibernate()

Save errno when we get an error so we can pass it to the apm(8) client.
ok kn@
usr.sbin/apmd/apmd.c