OSDN Git Service

Call _exit() instead of exit() on child failure.
authorFelipe Leme <felipeal@google.com>
Tue, 29 Mar 2016 20:29:11 +0000 (13:29 -0700)
committerFelipe Leme <felipeal@google.com>
Tue, 29 Mar 2016 20:56:47 +0000 (13:56 -0700)
commitbaa85bd893665a48aee73d7ca7b73cd39b48f998
treeda9667f142f84a2d4bafcf09ee34d5d3b77fe8a5
parentabddf727041d2ea0e678442b2d7905afc8b33bd4
Call _exit() instead of exit() on child failure.

As explained on man _exit:

"The  function  _exit()  terminates  the calling process "immediately".
Any open file descriptors belonging to the process are closed;"

If exit() is called instead, the resulting zip file will be corrupted.

BUG: 27900023
BUG: 27804637
Change-Id: I6591749603753d6016f350c629b7082cf6780ae2
cmds/dumpstate/dumpstate.cpp
cmds/dumpstate/utils.cpp