EV_FD_TO_WIN32_HANDLE on Windows

Mikkel Kroman mk at uplink.io
Sat Mar 8 09:04:11 CET 2014


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 <snaury at gmail.com> wrote:

> On Sat, Mar 8, 2014 at 11:26 AM, Alexey Borzenkov <snaury at gmail.com>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20140308/aa817511/attachment.html>


More information about the libev mailing list