aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 57a032f679..a4e7f25d75 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -797,7 +797,8 @@ rb_thread_create_timer_thread(void)
err = pthread_create(&timer_thread_id, &attr, thread_timer, 0);
if (err != 0) {
native_mutex_unlock(&timer_thread_lock);
- rb_bug("rb_thread_create_timer_thread: return non-zero (%d)", err);
+ fprintf(stderr, "[FATAL] Failed to create timer thread (errno: %d)\n", err);
+ exit(EXIT_FAILURE);
}
native_cond_wait(&timer_thread_cond, &timer_thread_lock);
native_mutex_unlock(&timer_thread_lock);