Fwd: eio.c bug - use of errno without testing result

Liam libev at networkimprov.net
Fri Oct 29 11:40:51 CEST 2010

The issue is... because sendfile(2) on Linux and FreeBSD succeed but set an
erroneous errno, an app which simply checks the eio req->errorno to decide
if there's an error may fail. Node.js does this as it provides callbacks
with either an error or data, never both.

Since eio is supports multiple OSes, one might expect it to hide OS

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20101029/73145515/attachment.html>

More information about the libev mailing list