If the expected failure mode is a lack of runlevel, it should probably be
explicitly checking for the command failing with exit code 127 instead of
just swallowing all errors.

Also, it would be nice if there was some alternate method of checking for
"is the machine shutting down", but maybe that's just not possible.

On Fri, Feb 12, 2010 at 11:16 AM, K.D. Lucas <[email protected]> wrote:

> My team is working with an operating system that doesn't support runlevel,
> so I'd like to wrap that in a try block.
>
> --
> K.D. Lucas
> [email protected]
>
> _______________________________________________
> Autotest mailing list
> [email protected]
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
>
>
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to