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}
This commit is contained in:
ulan 2016-04-27 08:08:08 -07:00 committed by Commit bot
parent 05e9284943
commit 75f05161d7

View File

@ -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);
}
}