diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-09 07:33:38 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-09 07:33:38 +0000 |
commit | 3ecd8ab8250b4ed135f4b1bcd47f6daa6afc23e0 (patch) | |
tree | bbadc691184c703eea41ee2361762517bd7c7fb3 /thread_pthread.c | |
parent | 66e42f4aa6285fdee33aef7137bee2636703b270 (diff) |
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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |