From 320b49473ee64f37787c514e18577106e8231588 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 25 Dec 2012 04:38:18 +0000 Subject: error.c: rb_write_error_str * error.c (compile_err_append, compile_warn_print, warn_print): use rb_write_error_str() instead of writing to rb_stderr directly. * io.c (rb_write_error_str): a stopgap measure not to unblock GVL. warning from require seems to still have race condition errors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index 95b846edb6..da24505eb0 100644 --- a/error.c +++ b/error.c @@ -115,7 +115,7 @@ compile_err_append(VALUE mesg) th->errinfo = err; } rb_str_cat2(mesg, "\n"); - rb_io_write(rb_stderr, mesg); + rb_write_error_str(mesg); } /* returned to the parser world */ @@ -165,7 +165,7 @@ compile_warn_print(const char *file, int line, const char *fmt, va_list args) str = compile_snprintf(NULL, "warning: ", file, line, fmt, args); rb_str_cat2(str, "\n"); - rb_io_write(rb_stderr, str); + rb_write_error_str(str); } void @@ -209,7 +209,7 @@ warn_print(const char *fmt, va_list args) rb_str_cat2(str, "warning: "); rb_str_vcatf(str, fmt, args); rb_str_cat2(str, "\n"); - rb_io_write(rb_stderr, str); + rb_write_error_str(str); } void -- cgit v1.2.3