summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-10 21:21:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-10 21:21:51 +0000
commit35973f273c3f6146a4b1a0c1597b0c1fc1d7b445 (patch)
tree5061ae58682d2a3460e9836604cef939c4f33413 /thread_pthread.c
parent67b8c950bfebee48b1883321a404e760cd9b9044 (diff)
* thread_pthread.c (rb_thread_create_timer_thread): assign return
value to the variable err. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 332e97be21..f9fa97bf8c 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1274,7 +1274,8 @@ rb_thread_create_timer_thread(void)
#ifdef HAVE_PTHREAD_ATTR_INIT
pthread_attr_t attr;
- if (pthread_attr_init(&attr)) {
+ err = pthread_attr_init(&attr);
+ if (err != 0) {
fprintf(stderr, "[FATAL] Failed to initialize pthread attr(errno: %d)\n", err);
exit(EXIT_FAILURE);
}