Hello all, I am referring to the thread here - http://aspn.activestate.com/ASPN/Mail/Message/ruby... Can someone throw more light on what's Errno::EBADF in the code - begin # Read stuff etc. rescue Errno::EBADF # Whatever end Thanks.
on 2007-03-23 04:22
on 2007-03-23 07:30
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