diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-28 21:17:29 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-28 21:17:29 +0000 |
commit | c22126755cd89f2b8aa309df8908d839e588a3bd (patch) | |
tree | 6a8f60739dffae50ce16a690eda77eaa56cdd550 /internal.h | |
parent | 58018f1f2d41ec28203439496537106e6b08c377 (diff) |
* error.c (rb_async_bug_errno): async-safe bug report function.
In timer thread, signal handler shoul use it.
The patch is contributed by Eric Wong <normalperson@yhbt.net>.
Refs: [ruby-core:37644] and [ruby-core:37647]
* thread_pthread.c: use rb_async_bug_errno().
And replace all fprintf() to write().
* internal.h (rb_async_bug_errno): add decl. of above func.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 350504646d..ec61b32ae7 100644 --- a/internal.h +++ b/internal.h @@ -76,6 +76,7 @@ void rb_gc_mark_encodings(void); /* error.c */ NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4)); VALUE rb_check_backtrace(VALUE); +NORETURN(void rb_async_bug_errno(const char *,int)); /* eval_error.c */ void ruby_error_print(void); |