Handle the native win32 errno as well
git-svn-id: file:///home/svn/framework3/trunk@7923 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
1eceebc950
commit
2d399f9b52
|
@ -33,7 +33,7 @@ module ThreadSafe
|
|||
# Poll the set supplied to us at least once.
|
||||
begin
|
||||
rv = ::IO.select(rfd, wfd, efd, DefaultCycle)
|
||||
rescue ::IOError, ::Errno::EBADF
|
||||
rescue ::IOError, ::Errno::EBADF, ::Errno::ENOTSOCK
|
||||
# If a stream was detected as being closed, re-raise the error as
|
||||
# a StreamClosedError with the specific file descriptor that was
|
||||
# detected as being closed. This is to better handle the case of
|
||||
|
@ -51,6 +51,8 @@ module ThreadSafe
|
|||
|
||||
# Re-raise the exception since we didn't handle it here.
|
||||
raise $!
|
||||
# rescue ::Exception => e
|
||||
# $stderr.puts "SELECT(#{t}) #{[rfd,wfd,efd].inspect} #{e.class} #{e} #{e.backtrace}"
|
||||
end
|
||||
|
||||
return rv if (rv)
|
||||
|
|
Loading…
Reference in New Issue