OSDN Git Service

dumpstate: enforce oneshot
authorNandana Dutt <nandana@google.com>
Fri, 15 Feb 2019 16:13:53 +0000 (16:13 +0000)
committerNandana Dutt <nandana@google.com>
Wed, 20 Feb 2019 10:23:29 +0000 (10:23 +0000)
commit16d1aeecb0a0c352377705582e9de1be90f732d8
tree49807d825feeda0623bd68230e75a14697408bc9
parentafff99c55a97c33d21cba31ee08bea6d05032568
dumpstate: enforce oneshot

Ensure the service exits after errors as well as after successful
finish as a oneshot service should.

While at it also move remove(file) to unlink(file) and fix an error
in checking the return value of unlink.

BUG: 123571915
Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test --gtest_filter=DumpstateBinderTest.*
Change-Id: I772b7981cd3b2f7c285ab980495d5539d57ebf46
cmds/dumpstate/DumpstateService.cpp
cmds/dumpstate/dumpstate.cpp
cmds/dumpstate/tests/dumpstate_smoke_test.cpp