From: Christian Reiniger Date: 2004-11-24T20:25:56+09:00 Subject: Re: Possible Bug: Running thread blocks access to /proc/loadavg --nextPart5770162.0HSvzs3GUK Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 24 November 2004 12:13, nobu.nokada@softhome.net wrote: > 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). Damn. That means I'll have to read the file in a separate process. That's=20 kinda sick :) Thanks anyway. Oh -- just found out that doing a=20 Thread.critical =3D true =46ile.read(...) Thread.critical =3D false works fine. Still not perfect, but much better than forking. =2D-=20 Christian Reiniger Age is something that doesn't matter, unless you are a cheese. - Billie Burke --nextPart5770162.0HSvzs3GUK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBpG+/GpB8KmR8IwcRAg+PAJ4jWCoLiNSRaQqIywRUqQQy8jpeHQCfUCHH +suvQTg/b51QJp95hznkfhw= =kM6a -----END PGP SIGNATURE----- --nextPart5770162.0HSvzs3GUK--