From 73ba34f1b7ab37a71c91ddbbe3e6d490d2161d34 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Tue, 22 May 2018 15:23:41 -0700 Subject: [PATCH] blank_screen: always exit with _exit(). Delay starting the threadpool until necessary, and once started, always exit with _exit(). Bug: 77934844 Test: screen is blanked on reboot Change-Id: I7715d889a6f78b9ce058fb3841ef7944116d8e82 --- light/utils/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/light/utils/main.cpp b/light/utils/main.cpp index d07e799ab9..724e0eefae 100644 --- a/light/utils/main.cpp +++ b/light/utils/main.cpp @@ -55,5 +55,6 @@ int main() { } }); - return 0; + // b/77934844: Avoid running static destructors. + _exit(1); }