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

Change-Id: I392d63ec3d3b339f0fa06173ad9833ba782f2d92
Commit-Ready: Mike Frysinger <>
Tested-by: Mike Frysinger <>
Reviewed-by: Ben Chan <>
1 file changed