From 75f05161d7963f9f7cea50e0cafd7f0fb6efd798 Mon Sep 17 00:00:00 2001 From: ulan Date: Wed, 27 Apr 2016 08:08:08 -0700 Subject: [PATCH] Print more debug info on semaphore failure. BUG=chromium:605349 LOG=NO Review URL: https://codereview.chromium.org/1921213004 Cr-Commit-Position: refs/heads/master@{#35825} --- src/base/platform/semaphore.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/base/platform/semaphore.cc b/src/base/platform/semaphore.cc index f53df6741f..6225b1655f 100644 --- a/src/base/platform/semaphore.cc +++ b/src/base/platform/semaphore.cc @@ -101,7 +101,9 @@ Semaphore::~Semaphore() { void Semaphore::Signal() { int result = sem_post(&native_handle_); - CHECK_EQ(0, result); + if (result != 0) { + V8_Fatal(__FILE__, __LINE__, "Semaphore signal failure: %d\n", errno); + } }