Merge "tombstoned: fixed tombstones failed issue" am: 894da4e0fd

am: f8bb1eb5c5

Change-Id: Idcdc3d1828409ddef7fb10283e2a369e69dbd2a8
This commit is contained in:
Elliott Hughes 2018-11-28 18:13:09 -08:00 committed by android-build-merger
commit 474983e2f9

View file

@ -348,8 +348,16 @@ static pid_t wait_for_vm_process(pid_t pseudothread_tid) {
return vm_pid;
}
static void InstallSigPipeHandler() {
struct sigaction action = {};
action.sa_handler = SIG_IGN;
action.sa_flags = SA_RESTART;
sigaction(SIGPIPE, &action, nullptr);
}
int main(int argc, char** argv) {
DefuseSignalHandlers();
InstallSigPipeHandler();
atrace_begin(ATRACE_TAG, "before reparent");
pid_t target_process = getppid();