From: Jacob Fugal Date: 2007-01-31T07:46:45+09:00 Subject: Re: Net::HTTP Closes STDIN On 1/30/07, ara.t.howard@noaa.gov wrote: > ... on my box: > > harp:~ > cat a.rb > Thread.new { } > p $stdin.eof? > > harp:~ > ruby a.rb # and then type ctrl-d > true > > harp:~ > ruby -v > ruby 1.8.4 (2005-12-01) [i686-linux] > > harp:~ > uname -srm > Linux 2.4.21-47.0.1.EL i686 > > so looks to be a bsd/mac issue? On my box: lukfugl@hephaestus:~$ cat a.rb Thread.new { } p $stdin.eof? lukfugl@hephaestus:~$ ruby a.rb # no CTRL-D, terminates immediately true lukfugl@hephaestus:~$ ruby -v ruby 1.8.5 (2006-08-25) [i486-linux] lukfugl@hephaestus:~$ uname -srm Linux 2.6.17-2-686 i686 So it's present for me with ruby 1.8.5 on linux 2.6.17. I did just notice that my ruby is compiled i486-linux -- that *may* have something to do with it, but I don't think so. Jacob Fugal