summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorXiaochu Liu <xiaochu@chromium.org>2019-05-16 17:27:34 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-05-24 15:11:32 -0700
commit1329fd880962c9441d4ca462e8cda3fbc29049c9 (patch)
treeff89d43d8cc1391ca0d6febed888860eee8b23dc /scripts/update_payload/format_utils.py
parent0ede7bdf41b49022284cb6337bfd56b42aa594f6 (diff)
update_engine: trigger a crash on unrecoverable condition
CURLM_INTERNAL_ERROR and CURLM_OUT_OF_MEMORY are two libcurl error codes that caller (update_engine) has no way to recover on its own. Reference: https://curl.haxx.se/libcurl/c/libcurl-errors.html Since those error conditions aren't recoverable and might be responsible for the failures to update observed in crbug.com/927039, we exit and let the system respawn update_engine to start from a fresh state and recover. BUG=chromium:962730,chromium:927039 TEST=unittest Change-Id: I55946e58e518da5bc5cb0c23690430c6298b8582 Reviewed-on: https://chromium-review.googlesource.com/1616425 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Xiaochu Liu <xiaochu@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Amin Hassani <ahassani@chromium.org>
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions