Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index 90f45dd163a22efc39e9a45d13bc70a91f892edc..c7f83bc114fd23cde925942767d06f650f12b389 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -768,8 +768,8 @@ void Thread::Start() { |
pthread_attr_setstacksize(&attr, static_cast<size_t>(stack_size_)); |
attr_ptr = &attr; |
} |
- pthread_create(&data_->thread_, attr_ptr, ThreadEntry, this); |
- ASSERT(data_->thread_ != kNoThread); |
Vitaly Repeshko
2011/11/09 19:03:47
Let's keep the assert.
|
+ int result = pthread_create(&data_->thread_, attr_ptr, ThreadEntry, this); |
+ CHECK_EQ(0, result); |
} |