From: gwtmp01@... Date: 2007-01-31T08:06:59+09:00 Subject: Re: Net::HTTP Closes STDIN On Jan 30, 2007, at 5:35 PM, ara.t.howard@noaa.gov wrote: > On Wed, 31 Jan 2007 gwtmp01@mac.com wrote: >> Here is a simpler example that illustrates the issue: >> >> Thread.new { } >> p $stdin.eof? > > sounds quite reasonable. however, 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? My post was based on ruby 1.8.5 on Darwin 8.8.0 Power Macintosh The anomaly does not occur with ruby-1.9 on the same OS/hardware. Gary Wright