summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-09 03:47:22 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-09 03:47:22 +0000
commit6c3bf2df0d0ad7edf7ae2b58ef0d7ba7e7a49eac (patch)
treecacd020dd2e97c0168fde2b56d528f968e09dae0 /thread_pthread.c
parent56c7dd9fcaf513523906222ce8cbc2c0099ce055 (diff)
Explicit failure in VM_CHECK_MODE when failing to create timer thread
"warning: pthread_create failed for timer: Resource temporarily unavailable, scheduling broken" still occurs randomly. This change will allow us to debug the issue. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index e1b20be58a..20b3a194ce 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1603,6 +1603,7 @@ 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