detect closed descriptors on EINTR
commit4cbd3c3ea9e251eadd74e0971b0510fc05f95aa4
authorEric Wong <normalperson@yhbt.net>
Mon, 9 May 2011 20:28:19 +0000 (9 13:28 -0700)
committerEric Wong <normalperson@yhbt.net>
Mon, 9 May 2011 20:34:31 +0000 (9 13:34 -0700)
tree444ba0c4f1ec331caf80ba8481340ebe4b709b9f
parent184f664d0773ea41c56b9db8dcf69878b9713855
detect closed descriptors on EINTR

We don't want to retry with the same FD if it somehow
got closed and reopened in a different thread.  We
could possibly have Errno::EBADF, too, but
rb_thread_io_blocking_region doesn't allow multiple
file descriptors...
ext/io_splice/io_splice_ext.c