From 3ecd8ab8250b4ed135f4b1bcd47f6daa6afc23e0 Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 9 Jan 2018 07:33:38 +0000 Subject: Fix the position of VM_ASSERT for "pthread_create failed for time" Fix r61706. Thank you, Eric Wong. [ruby-core:84756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 13d6dcb04d..35607db835 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1604,7 +1604,6 @@ rb_thread_create_timer_thread(void) if (err != 0) { rb_warn("pthread_attr_init failed for timer: %s, scheduling broken", strerror(err)); - VM_ASSERT(err == 0); return; } # ifdef PTHREAD_STACK_MIN @@ -1673,6 +1672,7 @@ rb_thread_create_timer_thread(void) else { rb_warn("timer thread stack size: system default"); } + VM_ASSERT(err == 0); #if USE_SLEEPY_TIMER_THREAD CLOSE_INVALIDATE(normal[0]); CLOSE_INVALIDATE(normal[1]); -- cgit v1.2.3