OSDN Git Service

Installd: Refactor dexopt to scoped file descriptor
authorAndreas Gampe <agampe@google.com>
Fri, 3 Jun 2016 23:09:32 +0000 (16:09 -0700)
committerAndreas Gampe <agampe@google.com>
Wed, 8 Jun 2016 04:08:54 +0000 (21:08 -0700)
commitafa58d175cc3e9adaa4f8df9bc7a8fac5798a50a
tree9faf682ec4f2dc2e35c8a007bb94e4c744a31cd5
parenteccc933e00e45cf73664ff5acd7d1ec84e0b48d4
Installd: Refactor dexopt to scoped file descriptor

Refactor the goto-fail cleanup to a unique_fd-like wrapper that
includes a potential cleanup step. In preparation for changes for
A/B OTA.

Bug: 25612095
Change-Id: If6cca85c12e0951bc468cb4f212b2f2d288c6041
cmds/installd/commands.cpp