Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcbae55e authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "tombstoned: fixed tombstones failed issue" am: 894da4e0 am: f8bb1eb5

am: 474983e2

Change-Id: I5eab18910ee87f9f990cf251dd9bd9333ba971fa
parents f269e774 474983e2
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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();