diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-07 23:59:58 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-07 23:59:58 +0000 |
| commit | c810db6362eb622faff74577edd6f902d4cf807e (patch) | |
| tree | e4352cb605ac1f407f3f3f95304eddc76d563f2b /thread_pthread.c | |
| parent | 5a066e60d9fe5462950a977f751927e1ca5b3053 (diff) | |
| download | ruby-c810db6362eb622faff74577edd6f902d4cf807e.tar.gz ruby-c810db6362eb622faff74577edd6f902d4cf807e.tar.xz ruby-c810db6362eb622faff74577edd6f902d4cf807e.zip | |
* thread_pthread.c (rb_thread_create_timer_thread): print fatal error
message to stderr instead of using rb_bug().
* KNOWNBUGS.rb, bootstraptest/test_fork.rb: move a fixed test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
| -rw-r--r-- | thread_pthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 57a032f67..a4e7f25d7 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); |
