Forum: Ruby Help with Errno.EBADF

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D3e9a0c5baec3681545c567bef36825b?d=identicon&s=25 RubyCrazy (Guest)
on 2007-03-23 04:22
(Received via mailing list)
Hello all,

I am referring to the thread here -

Can someone throw more light on what's

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

C2253345d045285df6751f7d65ff8569?d=identicon&s=25 Paul Stickney (Guest)
on 2007-03-23 07:30
(Received via mailing list)
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

This topic is locked and can not be replied to.