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

Commit b02851a9 authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Debuggerd: Extend crash_dump timeout to 5 seconds

Some processes have lots of threads and minidebug-info. Unwinding
these can take more than the original two seconds.

Bug: 62828735
Test: m
Test: debuggerd_test
Test: adb shell kill -s 6 `pid system_server`
Change-Id: I0041bd01753135ef9d86783a3c6a5cbca1c5bbad
parent 26cbafb8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -282,7 +282,10 @@ int main(int argc, char** argv) {
  ATRACE_NAME("after reparent");

  // Die if we take too long.
  alarm(2);
  //
  // Note: processes with many threads and minidebug-info can take a bit to
  //       unwind, do not make this too small. b/62828735
  alarm(5);

  std::string attach_error;