diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-10 21:21:51 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-10 21:21:51 +0000 |
commit | 35973f273c3f6146a4b1a0c1597b0c1fc1d7b445 (patch) | |
tree | 5061ae58682d2a3460e9836604cef939c4f33413 | |
parent | 67b8c950bfebee48b1883321a404e760cd9b9044 (diff) | |
download | ruby-35973f273c3f6146a4b1a0c1597b0c1fc1d7b445.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | thread_pthread.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Jun 11 06:20:50 2012 NARUSE, Yui <naruse@ruby-lang.org> + + * thread_pthread.c (rb_thread_create_timer_thread): assign return + value to the variable err. + Mon Jun 11 06:17:06 2012 NARUSE, Yui <naruse@ruby-lang.org> * thread_pthread.c (native_cond_initialize): fix typo in r36022. 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); } |