QCamera2: HAL3: replace abort with exit
Bug: 26570334
Change-Id: I2f3c0d84ad24c8d071981be410acb3083b0a8e13
diff --git a/QCamera2/HAL3/QCamera3HWI.cpp b/QCamera2/HAL3/QCamera3HWI.cpp
index 5c18931..58b9d32 100644
--- a/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/QCamera2/HAL3/QCamera3HWI.cpp
@@ -528,8 +528,9 @@
pthread_mutex_destroy(&mMutex);
if (hasPendingBuffers) {
- ALOGE("%s: Not all buffers are returned. Aborting...", __func__);
- abort();
+ ALOGE("%s: Not all buffers were returned. Notified the camera daemon process to restart."
+ " Exiting here...", __func__);
+ exit(EXIT_FAILURE);
}
CDBG("%s: X", __func__);
}