crash: exit non-zero when writing /proc files fail
If we don't update /proc files successfully, we log a warning, but still
exit 0. This causes crash related autotests to fail in confusing ways.
Instead, exit 1 when the steps fail so we get a clear failing signal.
TEST=crash autotests still pass in precq
Commit-Ready: Mike Frysinger <email@example.com>
Tested-by: Mike Frysinger <firstname.lastname@example.org>
Reviewed-by: Ben Chan <email@example.com>
1 file changed