Help with Errno.EBADF

Hello all,

I am referring to the thread here -
http://aspn.activestate.com/ASPN/Mail/Message/ruby-talk/3251203

Can someone throw more light on what's

Errno::EBADF in the code -
begin
  # Read stuff etc.
rescue Errno::EBADF
  # Whatever
end

Thanks.

Those come from ``errno''. See the errno(3) manpage.
And, from that man: ``EBADF Bad file descriptor (POSIX.1)''

However, I have no idea what would cause it. Possibly closing a FD
and then trying to use it later (think C/low-level) but, I'm note
sure.

Paul