Index: runtime/bin/process_android.cc |
diff --git a/runtime/bin/process_android.cc b/runtime/bin/process_android.cc |
index 11949ba8a2d0b2adf505d0f9e58269f6be1b874d..d2dcca1ed0800d94ab77ec34b2e87e67c34a11a8 100644 |
--- a/runtime/bin/process_android.cc |
+++ b/runtime/bin/process_android.cc |
@@ -682,7 +682,10 @@ class ProcessStarter { |
strlen(os_error_message) + 1); |
} |
VOID_TEMP_FAILURE_RETRY(close(exec_control_[1])); |
- exit(1); |
+ |
+ // We avoid running through registered atexit() handlers because that is |
+ // unnecessary work. |
+ _exit(1); |
} |