1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Temporary hack for SIGILL of miniruby on FreeBSD.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-06-27 18:36:55 +00:00
parent bb6384761e
commit 801bac0977

View file

@ -1022,7 +1022,11 @@ static void
consume_communication_pipe(void)
{
const size_t buff_size = 1024;
#ifdef __FreeBSD__
char buff[buff_size];
#else
char buff[1024];
#endif
ssize_t result;
retry:
result = read(timer_thread_pipe[0], buff, buff_size);