try to flush stdio in the crash handler

NOTREECHECKS=true

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1808853004

Review URL: https://codereview.chromium.org/1808853004
This commit is contained in:
mtklein 2016-03-17 10:16:12 -07:00 committed by Commit bot
parent 43812e24cb
commit 13bf3396be

View File

@ -185,6 +185,7 @@ static std::atomic<bool> in_signal_handler{false};
}
info("\n");
print_status();
fflush(stdout);
}
// Execute default exception handler... hopefully, exit.
return EXCEPTION_EXECUTE_HANDLER;
@ -214,6 +215,7 @@ static std::atomic<bool> in_signal_handler{false};
for (int i = 0; i < count; i++) {
info(" %s\n", symbols[i]);
}
fflush(stdout);
}
_Exit(sig);
});