"U.NAKAMURA" <usa / garbagecollect.jp> wrote:
> Hi, Eric
> 
> In message "Re: [ruby-cvs:70102] usa:r63008 (trunk): get rid of test error/failure on Windows introduced at r62955"
>   on Wed, 28 Mar 2018 16:21:06 +0000, normalperson / yhbt.net wrote:
> > I guess Windows does not have pread?
> 
> Yes.
> 
> 
> > For current C Ruby, lock/unlock can use GVL.  So I think that
> > workaround can be implemented for Windows in IO.copy_stream
> > itself, and not WEBrick.
> 
> The document of IO.copy_stream says:
> 
>  IO.copy_stream doesn't move the current file offset.
> 
> I don't have any idea to implement such behavior for Windows.

Sorry, I left out one syscall (ENOCOFFEE):

> > 	# only reliable facsimile for pread iff FDs are not shared across fork
> > 	lock
> > 	lseek
> > 	read

	lseek back to original position

> > 	unlock

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>