Patch: fix libeio cancellation

Hongli Lai hongli at phusion.nl
Fri Aug 29 13:49:46 CEST 2014


On Aug 29, 2014 1:30 PM, "Marc Lehmann" <schmorp at schmorp.de> wrote:
>
> On Fri, Aug 29, 2014 at 12:07:57AM +0200, Hongli Lai <hongli at phusion.nl>
wrote:
> > With "lost" I do not mean that libeio closes it. I meant that the file
> > descriptor still exists, but nobody knows what its number is.
>
> Since libeio doesn't own the fd, somebody else must own it, e.g. your
> program. If your program no longer knows what fd to close when the request
> is destroyed, it can probably look at the request or, usually better, it
> really should know - how would you know the data ptr in the request is
> still valid for example?

I know that libeio does not own the fd. But that was not my point. My point
is: after libeio has created an fd with open(), it looks like libeio stops
(because of the cancellation flag) and does not tell my code what the
created fd is (because the callback is not called). How can my code
possibly figure out what the fd is, so that i can close it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20140829/59a8d9df/attachment.html>


More information about the libev mailing list