commit | 909825886c58c7f9eeafb6223b6de91e29c97232 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Jun 19 13:38:20 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Jun 19 14:10:45 2017 -0700 |
tree | 6c6598dc645e11b1f01394c5f736be6fa7da2c57 | |
parent | 8a95d49d8f149e190f2e170c968cbdef6a7db687 [diff] |
Hack around b/36066697. Avoid calling libbinder's static destructors by calling _exit instead of returning in main. Bug: http://b/36066697 Test: treehugger Change-Id: I81dd50453f1ea64d97ec97d207fff732b3c62512
diff --git a/cmds/screencap/screencap.cpp b/cmds/screencap/screencap.cpp index 5fedc9e..c4f17fa 100644 --- a/cmds/screencap/screencap.cpp +++ b/cmds/screencap/screencap.cpp
@@ -214,5 +214,7 @@ if (mapbase != MAP_FAILED) { munmap((void *)mapbase, mapsize); } - return 0; + + // b/36066697: Avoid running static destructors. + _exit(1); }