[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

Re: Possible Bug: Running thread blocks access to /proc/loadavg

From: nobu.nokada@...
Date: 2004-11-24 11:13:44 UTC
List: ruby-core #3803
Hi,

At Wed, 24 Nov 2004 05:21:24 +0900,
Christian Reiniger wrote in [ruby-core:03798]:
>  Linux chrisbig 2.6.9 #3 Tue Nov 23 21:28:15 CET 2004 i686 AMD Athlon(tm) 
> XP 2800+ AuthenticAMD GNU/Linux

Seems Linux kernel 2.6's issue, its loadavg doesn't implement
poll function properly.

Simple example in C also blocks at select(2).

  #include <stdio.h>
  #include <sys/select.h>
  #include <fcntl.h>

  static const char load_avg[] = "/proc/loadavg";

  int main()
  {
      int fd = open(load_avg, O_RDONLY), ret;
      fd_set r;
      FD_ZERO(&r);
      FD_SET(fd, &r);
      ret = select(fd + 1, &r, 0, 0, 0);
      printf("%d, %d\n", ret, FD_ISSET(fd, &r));
      return 0;
  }


-- 
Nobu Nakada

In This Thread