On Aug 29, 2014 1:30 PM, "Marc Lehmann" <schm...@schmorp.de> wrote: > > On Fri, Aug 29, 2014 at 12:07:57AM +0200, Hongli Lai <hon...@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?
_______________________________________________ libev mailing list libev@lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev