[前][次][番号順一覧][スレッド一覧]

ruby-changes:20211

From: naruse <ko1@a...>
Date: Tue, 28 Jun 2011 03:37:06 +0900 (JST)
Subject: [ruby-changes:20211] naruse:r32259 (trunk): Temporary hack for SIGILL of miniruby on FreeBSD.

naruse	2011-06-28 03:36:55 +0900 (Tue, 28 Jun 2011)

  New Revision: 32259

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32259

  Log:
    Temporary hack for SIGILL of miniruby on FreeBSD.

  Modified files:
    trunk/thread_pthread.c

Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 32258)
+++ thread_pthread.c	(revision 32259)
@@ -1022,7 +1022,11 @@
 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]