diff options
-rw-r--r-- | services/camera/libcameraservice/CameraServiceWatchdog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/camera/libcameraservice/CameraServiceWatchdog.cpp b/services/camera/libcameraservice/CameraServiceWatchdog.cpp index fcd6ebec12..a1696678c0 100644 --- a/services/camera/libcameraservice/CameraServiceWatchdog.cpp +++ b/services/camera/libcameraservice/CameraServiceWatchdog.cpp @@ -41,8 +41,10 @@ bool CameraServiceWatchdog::threadLoop() tidToCycleCounterMap[currentThreadId]++; if (tidToCycleCounterMap[currentThreadId] >= mMaxCycles) { - ALOGW("CameraServiceWatchdog triggering kill for pid: %d", getpid()); - kill(getpid(), SIGKILL); + ALOGW("CameraServiceWatchdog triggering abort for pid: %d", getpid()); + // We use abort here so we can get a tombstone for better + // debugging. + abort(); } } } |