1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
naruse 2012-06-10 21:21:51 +00:00
parent 67b8c950bf
commit 35973f273c
2 changed files with 7 additions and 1 deletions

View file

@ -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.

View file

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