[Pm-utils] A "pm-echo" that actually returns the error code of write(2)

Stefan Seyfried seife at suse.de
Fri Mar 16 09:23:00 PDT 2007

On Fri, Mar 16, 2007 at 05:10:19PM +0100, Stefan Seyfried wrote:
> Hi,
> sooner or later we will want to return error codes from suspend back
> up the stack to the application.
> When doing "echo foo > /sys/power/state", i get a return code of 1,
> instead of 22 for EINVAL, which would be the correct return code:

Stating the obvious here, the next step is to actually propagate that
error code up the stack.

Note that i can live without this pm-echo, since s2ram, s2disk and s2both
return proper error codes anyway ;-)
Stefan Seyfried

"Any ideas, John?"
"Well, surrounding them's out." 

More information about the Pm-utils mailing list