зеркало из https://github.com/github/ruby.git
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:
Родитель
bb6384761e
Коммит
801bac0977
|
@ -1022,7 +1022,11 @@ static void
|
||||||
consume_communication_pipe(void)
|
consume_communication_pipe(void)
|
||||||
{
|
{
|
||||||
const size_t buff_size = 1024;
|
const size_t buff_size = 1024;
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
char buff[buff_size];
|
||||||
|
#else
|
||||||
char buff[1024];
|
char buff[1024];
|
||||||
|
#endif
|
||||||
ssize_t result;
|
ssize_t result;
|
||||||
retry:
|
retry:
|
||||||
result = read(timer_thread_pipe[0], buff, buff_size);
|
result = read(timer_thread_pipe[0], buff, buff_size);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче