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:
parent
bb6384761e
commit
801bac0977
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue