Hi Alexey,

That's very interesting -- I assumed that _get_osfhandle would simply
return a valid file descriptor for a given handle, with no need to open it
first.

Using _open_osfhandle worked!

Thanks a lot.


On Sat, Mar 8, 2014 at 8:30 AM, Alexey Borzenkov <[email protected]> wrote:

> On Sat, Mar 8, 2014 at 11:26 AM, Alexey Borzenkov <[email protected]>
> wrote:
> > int fd = _open_osfhandle(fh);
>
> Sorry, this line should have obviously read:
>
> int fd = _open_osfhandle(fh, 0);
>
> Best regards,
> Alexey.
>



-- 
Sincerely,
Mikkel Kroman
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to