diff options
author | Tao Bao <tbao@google.com> | 2018-06-18 12:49:06 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2018-06-18 13:00:43 -0700 |
commit | 0a883c18f6063ba088e7eca327e330ae07b539a7 (patch) | |
tree | cd449d84619f62bc7e0632650200b28c61c72d48 /applypatch/applypatch_modes.cpp | |
parent | 9ed4b4147876a01aec4599e21d6df9a5a5475151 (diff) |
updater: Defer the creation of the new data writer.
This avoids leaving the created new data writer thread unjoined, in the
presence of transfer list parsing errors, or the early exit case on
`total_blocks == 0`.
Also fix a minor issue when dumping the errno on pthread_create error
(pthread_create returns the error number, as opposed to setting errno).
Test: Run recovery_component_test on marlin.
Change-Id: Icfac27fef0c64736eb8c76264da73c223b4960cb
Diffstat (limited to 'applypatch/applypatch_modes.cpp')
0 files changed, 0 insertions, 0 deletions