зеркало из https://github.com/github/ruby.git
* 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:
Родитель
67b8c950bf
Коммит
35973f273c
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче