M
MiG
Hello,
I have a problem with opening a file under /proc in a thread.
This works fine:
File.open('/proc/locks').readlines
But this hangs on open:
t =3D Thread.new { File.open('/proc/locks').readlines }
t.join
It happens on Linux 2.6, Linux 2.4 seems ok.
It looks the same as
http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-core/3798
Is there any workaround (other than `cat`) ?
Thank you,
jan molic
I have a problem with opening a file under /proc in a thread.
This works fine:
File.open('/proc/locks').readlines
But this hangs on open:
t =3D Thread.new { File.open('/proc/locks').readlines }
t.join
It happens on Linux 2.6, Linux 2.4 seems ok.
It looks the same as
http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-core/3798
Is there any workaround (other than `cat`) ?
Thank you,
jan molic